parse: address nitpick
This commit is contained in:
parent
1eb0844f5d
commit
7876711b9b
@ -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)))
|
||||
}
|
||||
} else if self.token == token::Semi {
|
||||
// Do not attempt to parse an expression if we're done here.
|
||||
else if self.token == token::Semi {
|
||||
self.error_outer_attrs(&attrs);
|
||||
self.bump();
|
||||
let mut last_semi = lo;
|
||||
|
Loading…
Reference in New Issue
Block a user