Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
process_potential_macro_variable: de-fatalize an error
  • Loading branch information
Centril committed Dec 31, 2019
commit 85dbbaa492c83a390d9ab4bac20e20b672565431
3 changes: 1 addition & 2 deletions src/librustc_parse/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,7 @@ impl<'a> Parser<'a> {
_ => 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();
Expand Down