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