diff options
| author | bors <bors@rust-lang.org> | 2025-03-12 14:18:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-03-12 14:18:36 +0000 |
| commit | aaa2d47daebb02454fc7c08c04c3c603d5efeedb (patch) | |
| tree | 5e9b8a105ac6c0ef89419df3333303f81489ae1c /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 0998d4095b0f11061f78a3f9c77a87838a4c1cb7 (diff) | |
| parent | 3378ee1a4f2ddfc4b740b70d286fc32d81aca005 (diff) | |
| download | rust-aaa2d47daebb02454fc7c08c04c3c603d5efeedb.tar.gz rust-aaa2d47daebb02454fc7c08c04c3c603d5efeedb.zip | |
Auto merge of #138083 - nnethercote:rm-NtItem-NtStmt, r=petrochenkov
Remove `NtItem` and `NtStmt` Another piece of #124141. r? `@petrochenkov`
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index b37dd64fbed..9b2d562a69e 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -1364,7 +1364,6 @@ impl<'a> Parser<'a> { self.bump(); return Ok(self.mk_expr(self.prev_token.span, ExprKind::Block(block, None))); } - _ => {} }; } else if let Some(path) = self.eat_metavar_seq(MetaVarKind::Path, |this| { this.collect_tokens_no_attrs(|this| this.parse_path(PathStyle::Type)) @@ -3064,7 +3063,7 @@ impl<'a> Parser<'a> { } self.restore_snapshot(pre_pat_snapshot); - match self.parse_stmt_without_recovery(true, ForceCollect::No) { + match self.parse_stmt_without_recovery(true, ForceCollect::No, false) { // Consume statements for as long as possible. Ok(Some(stmt)) => { stmts.push(stmt); |
