We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1eb0844 commit 7876711Copy full SHA for 7876711
src/librustc_parse/parser/stmt.rs
@@ -59,9 +59,8 @@ impl<'a> Parser<'a> {
59
} else if let Some(item) = self.parse_stmt_item(attrs.clone())? {
60
// FIXME: Bad copy of attrs
61
self.mk_stmt(lo.to(item.span), StmtKind::Item(P(item)))
62
- }
63
- // Do not attempt to parse an expression if we're done here.
64
- else if self.token == token::Semi {
+ } else if self.token == token::Semi {
+ // Do not attempt to parse an expression if we're done here.
65
self.error_outer_attrs(&attrs);
66
self.bump();
67
let mut last_semi = lo;
0 commit comments