Skip to content

Commit

Permalink
parse: address nitpick
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Feb 25, 2020
1 parent 1eb0844 commit 7876711
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/librustc_parse/parser/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ impl<'a> Parser<'a> {
} else if let Some(item) = self.parse_stmt_item(attrs.clone())? {
// FIXME: Bad copy of attrs
self.mk_stmt(lo.to(item.span), StmtKind::Item(P(item)))
}
// Do not attempt to parse an expression if we're done here.
else if self.token == token::Semi {
} else if self.token == token::Semi {
// Do not attempt to parse an expression if we're done here.
self.error_outer_attrs(&attrs);
self.bump();
let mut last_semi = lo;
Expand Down

0 comments on commit 7876711

Please sign in to comment.