We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e60f72 commit 3e8883eCopy full SHA for 3e8883e
src/libsyntax/parse/parser.rs
@@ -5487,8 +5487,9 @@ impl<'a> Parser<'a> {
5487
if !self.eat(term) {
5488
let token_str = self.this_token_to_string();
5489
let mut err = self.fatal(&format!("expected item, found `{}`", token_str));
5490
+ let msg = "consider removing this semicolon";
5491
if token_str == ";" {
- err.note("consider removing the semicolon");
5492
+ err.span_suggestion_short(self.span, msg, "".to_string());
5493
}
5494
return Err(err);
5495
0 commit comments