Move a comment to a better spot.

This commit is contained in:
Nicholas Nethercote 2024-08-01 15:41:51 +10:00
parent 2eb2ef1684
commit 9d77d17f71

View File

@ -116,13 +116,12 @@ impl<'a> Parser<'a> {
} }
} }
} else if let Some(item) = self.parse_item_common( } else if let Some(item) = self.parse_item_common(
attrs.clone(), attrs.clone(), // FIXME: unwanted clone of attrs
false, false,
true, true,
FnParseMode { req_name: |_| true, req_body: true }, FnParseMode { req_name: |_| true, req_body: true },
force_collect, force_collect,
)? { )? {
// FIXME: Bad copy of attrs
self.mk_stmt(lo.to(item.span), StmtKind::Item(P(item))) self.mk_stmt(lo.to(item.span), StmtKind::Item(P(item)))
} else if self.eat(&token::Semi) { } else if self.eat(&token::Semi) {
// Do not attempt to parse an expression if we're done here. // Do not attempt to parse an expression if we're done here.