diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-10-29 09:39:58 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-10-29 09:39:58 -0700 |
| commit | 54858d5a6709f3fee2481fc9d607b81683f6b1ec (patch) | |
| tree | 9c95ea80865d143a6ed111c7b942b03927689f71 /src/libsyntax/parse | |
| parent | 3e22e0c3bc54825f096111bc86ea6e4a6b076ba0 (diff) | |
| download | rust-54858d5a6709f3fee2481fc9d607b81683f6b1ec.tar.gz rust-54858d5a6709f3fee2481fc9d607b81683f6b1ec.zip | |
Fix regression
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 003f83a5c6e..326271a517b 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -6307,7 +6307,7 @@ impl<'a> Parser<'a> { if !self.eat(term) { let token_str = self.this_token_descr(); let mut err = self.fatal(&format!("expected item, found {}", token_str)); - if token_str == ";" { + if self.token == token::Semi { let msg = "consider removing this semicolon"; err.span_suggestion_short_with_applicability( self.span, msg, String::new(), Applicability::MachineApplicable |
