diff options
| author | Ben Kimock <kimockb@gmail.com> | 2025-03-07 05:52:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-07 05:52:22 +0000 |
| commit | a3ea86e4b1e3a668f74c8fb7eaf99e97db047950 (patch) | |
| tree | cea01037962191e12be544d1ae5cad9659ae9461 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 7c3979ec45b020171c5ea2a38495c8d08a8b5444 (diff) | |
| parent | 245aad1b3e38c1b26170c77972fe67db55db2199 (diff) | |
| download | rust-a3ea86e4b1e3a668f74c8fb7eaf99e97db047950.tar.gz rust-a3ea86e4b1e3a668f74c8fb7eaf99e97db047950.zip | |
Merge pull request #4222 from rust-lang/rustup-2025-03-07
Automatic Rustup
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 0a08c6faeb4..cab0c7df3e0 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -1357,7 +1357,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)) @@ -3046,7 +3045,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); |
