diff options
| author | The Miri Cronjob Bot <miri@cron.bot> | 2025-03-07 05:24:01 +0000 |
|---|---|---|
| committer | The Miri Cronjob Bot <miri@cron.bot> | 2025-03-07 05:24:01 +0000 |
| commit | 245aad1b3e38c1b26170c77972fe67db55db2199 (patch) | |
| tree | 37bca7d2e0ffe2097778c9721dc9f352897eada6 /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 7e3daf4edae9d4586478d0dda1930698aaec86e3 (diff) | |
| parent | 3378ee1a4f2ddfc4b740b70d286fc32d81aca005 (diff) | |
| download | rust-245aad1b3e38c1b26170c77972fe67db55db2199.tar.gz rust-245aad1b3e38c1b26170c77972fe67db55db2199.zip | |
Merge from rustc
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); |
