about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorSeiichi Uchida <seiichi.uchida@dena.com>2018-06-19 14:04:16 +0900
committerSeiichi Uchida <seiichi.uchida@dena.com>2018-06-19 14:04:16 +0900
commitcafe9d0ed404e940a1f039e25053f11f47e88973 (patch)
treee90189202fa59770789471262857980d2dde21ec /src/libsyntax/parse/parser.rs
parent5230979794db209de492b3f7cc688020b72bc7c6 (diff)
downloadrust-cafe9d0ed404e940a1f039e25053f11f47e88973.tar.gz
rust-cafe9d0ed404e940a1f039e25053f11f47e88973.zip
Do not consume semicolon twice while parsing local statement
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 530094e22f2..3500deedde9 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -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])?;
                 }
             }
             _ => {}