]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_expand/src/base.rs
Auto merge of #101154 - RalfJung:validation-perf, r=oli-obk
[rust.git] / compiler / rustc_expand / src / base.rs
index df56e032988c6e05c695e49d45b64a2d38741313..2bb522caa2d418b2e292119ed7e84a08d1909c5d 100644 (file)
@@ -1227,7 +1227,7 @@ pub fn expr_to_spanned_string<'a>(
                 );
                 Some((err, true))
             }
-            ast::LitKind::Err(_) => None,
+            ast::LitKind::Err => None,
             _ => Some((cx.struct_span_err(l.span, err_msg), false)),
         },
         ast::ExprKind::Err => None,