]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/parse/parser.rs
Rollup merge of #51629 - topecongiro:multiple-semicolon-in-local-span, r=petrochenkov
[rust.git] / src / libsyntax / parse / parser.rs
index 3955ccb4c420a1d8f870d81f706e48b62152e841..2408d6202d882135d2220a10e6f8be0da7813c3b 100644 (file)
@@ -4709,7 +4709,7 @@ fn parse_block_tail(&mut self, lo: Span, s: BlockCheckMode) -> PResult<'a, P<Blo
                 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])?;
                 }
             }
             _ => {}