Skip to content

Commit 9d77d17

Browse files
committed
Move a comment to a better spot.
1 parent 2eb2ef1 commit 9d77d17

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-2
lines changed

compiler/rustc_parse/src/parser/stmt.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,12 @@ impl<'a> Parser<'a> {
116116
}
117117
}
118118
} else if let Some(item) = self.parse_item_common(
119-
attrs.clone(),
119+
attrs.clone(), // FIXME: unwanted clone of attrs
120120
false,
121121
true,
122122
FnParseMode { req_name: |_| true, req_body: true },
123123
force_collect,
124124
)? {
125-
// FIXME: Bad copy of attrs
126125
self.mk_stmt(lo.to(item.span), StmtKind::Item(P(item)))
127126
} else if self.eat(&token::Semi) {
128127
// Do not attempt to parse an expression if we're done here.

0 commit comments

Comments
 (0)