Skip to content

Commit cafe9d0

Browse files
committed
Do not consume semicolon twice while parsing local statement
1 parent 5230979 commit cafe9d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4700,7 +4700,7 @@ impl<'a> Parser<'a> {
47004700
if macro_legacy_warnings && self.token != token::Semi {
47014701
self.warn_missing_semicolon();
47024702
} else {
4703-
self.expect_one_of(&[token::Semi], &[])?;
4703+
self.expect_one_of(&[], &[token::Semi])?;
47044704
}
47054705
}
47064706
_ => {}

0 commit comments

Comments
 (0)