diff options
| author | Zachary S <zasample18+github@gmail.com> | 2025-03-17 00:25:15 -0500 | 
|---|---|---|
| committer | Zachary S <zasample18+github@gmail.com> | 2025-03-17 01:59:37 -0500 | 
| commit | f478853f425fc0207add653b48c49c937acaa94e (patch) | |
| tree | 3f7fe7d662114e8b9f812c37cfe967072858265d /compiler/rustc_parse/src/parser/mod.rs | |
| parent | 227690a258492c84ae9927d18289208d0180e62f (diff) | |
| download | rust-f478853f425fc0207add653b48c49c937acaa94e.tar.gz rust-f478853f425fc0207add653b48c49c937acaa94e.zip | |
If a label is placed on the block of a loop instead of the header, suggest moving it to the header.
Diffstat (limited to 'compiler/rustc_parse/src/parser/mod.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 323c0c1d6d0..a79b4048288 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -1374,7 +1374,7 @@ impl<'a> Parser<'a> { self.psess.gated_spans.gate(sym::inline_const_pat, span); } self.expect_keyword(exp!(Const))?; - let (attrs, blk) = self.parse_inner_attrs_and_block()?; + let (attrs, blk) = self.parse_inner_attrs_and_block(None)?; let anon_const = AnonConst { id: DUMMY_NODE_ID, value: self.mk_expr(blk.span, ExprKind::Block(blk, None)), | 
