Skip to content

Commit

Permalink
Do not consume semicolon twice while parsing local statement
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro committed Jun 19, 2018
1 parent 5230979 commit cafe9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4700,7 +4700,7 @@ impl<'a> Parser<'a> {
if macro_legacy_warnings && self.token != token::Semi {
self.warn_missing_semicolon();
} else {
self.expect_one_of(&[token::Semi], &[])?;
self.expect_one_of(&[], &[token::Semi])?;
}
}
_ => {}
Expand Down

0 comments on commit cafe9d0

Please sign in to comment.