]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_parse/parser/mod.rs
process_potential_macro_variable: de-fatalize an error
[rust.git] / src / librustc_parse / parser / mod.rs
index 103bbe5dd763e20aab519bf7a5e7d6cc7cacc8fe..322c8dda647934b8cd83febf0836df7e322ff16a 100644 (file)
@@ -1056,8 +1056,7 @@ pub fn process_potential_macro_variable(&mut self) {
                     _ => unreachable!(),
                 };
                 let span = self.prev_span.to(self.token.span);
-                self.diagnostic()
-                    .struct_span_fatal(span, &format!("unknown macro variable `{}`", name))
+                self.struct_span_err(span, &format!("unknown macro variable `{}`", name))
                     .span_label(span, "unknown macro variable")
                     .emit();
                 self.bump();