parse: address nitpick

This commit is contained in:
Mazdak Farrokhzad 2020-02-25 06:00:47 +01:00
parent 1eb0844f5d
commit 7876711b9b

View File

@ -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;