diff options
| author | colinmarsh19 <32608057+colinmarsh19@users.noreply.github.com> | 2017-11-25 18:34:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-25 18:34:20 -0700 |
| commit | 3e8883e2aa425147d219e174788e2c1062d7d61f (patch) | |
| tree | 41e9e5b03151f94ad462c58fedcb1c27905b45c7 /src/libsyntax | |
| parent | 8e60f720fb6cf18e9530f4301c2f599357b8a277 (diff) | |
| download | rust-3e8883e2aa425147d219e174788e2c1062d7d61f.tar.gz rust-3e8883e2aa425147d219e174788e2c1062d7d61f.zip | |
Changed from note to span_suggestion_short
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 1c64b36d960..0f32d588b37 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -5487,8 +5487,9 @@ impl<'a> Parser<'a> { if !self.eat(term) { let token_str = self.this_token_to_string(); let mut err = self.fatal(&format!("expected item, found `{}`", token_str)); + let msg = "consider removing this semicolon"; if token_str == ";" { - err.note("consider removing the semicolon"); + err.span_suggestion_short(self.span, msg, "".to_string()); } return Err(err); } |
