diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-01 15:41:51 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-08-01 19:30:39 +1000 |
| commit | 9d77d17f7127def53c6a3555ae9a6a1f271a8e37 (patch) | |
| tree | 22cc3354fa37fb66c5f671f9561f9d1a519818d3 /compiler/rustc_parse/src | |
| parent | 2eb2ef1684e4df67389432fe0c1cc2776c790cd7 (diff) | |
| download | rust-9d77d17f7127def53c6a3555ae9a6a1f271a8e37.tar.gz rust-9d77d17f7127def53c6a3555ae9a6a1f271a8e37.zip | |
Move a comment to a better spot.
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/stmt.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/stmt.rs b/compiler/rustc_parse/src/parser/stmt.rs index e0676b72634..b3efb87a4a2 100644 --- a/compiler/rustc_parse/src/parser/stmt.rs +++ b/compiler/rustc_parse/src/parser/stmt.rs @@ -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. |
