Skip to content

Commit

Permalink
Move a comment to a better spot.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed Aug 1, 2024
1 parent 2eb2ef1 commit 9d77d17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_parse/src/parser/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,12 @@ impl<'a> Parser<'a> {
}
}
} 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.
Expand Down

0 comments on commit 9d77d17

Please sign in to comment.