diff options
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index a7977d5235d..35e89652c99 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -6128,10 +6128,9 @@ impl<'a> Parser<'a> { } else { (None, crate_name) }; + self.expect(&token::Semi)?; - // We grab this before expecting the `;` so it's not a part of the span let prev_span = self.prev_span; - self.expect(&token::Semi)?; Ok(self.mk_item(lo.to(prev_span), ident, |
