We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eb2ef1 commit 9d77d17Copy full SHA for 9d77d17
compiler/rustc_parse/src/parser/stmt.rs
@@ -116,13 +116,12 @@ impl<'a> Parser<'a> {
116
}
117
118
} else if let Some(item) = self.parse_item_common(
119
- attrs.clone(),
+ attrs.clone(), // FIXME: unwanted clone of attrs
120
false,
121
true,
122
FnParseMode { req_name: |_| true, req_body: true },
123
force_collect,
124
)? {
125
- // FIXME: Bad copy of attrs
126
self.mk_stmt(lo.to(item.span), StmtKind::Item(P(item)))
127
} else if self.eat(&token::Semi) {
128
// Do not attempt to parse an expression if we're done here.
0 commit comments