about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-04-19 13:12:12 -0400
committerMichael Goulet <michael@errs.io>2024-04-19 13:12:20 -0400
commit2ef15523c15758ae00aa192de7077fd36fa61315 (patch)
tree65d92fcd731618444b52f17b0b8114c105f48980 /compiler/rustc_parse/src/parser
parentc5de414865186e55332f7929495daa2d930f0946 (diff)
downloadrust-2ef15523c15758ae00aa192de7077fd36fa61315.tar.gz
rust-2ef15523c15758ae00aa192de7077fd36fa61315.zip
Don't fatal when calling expect_one_of when recovering arg in parse_seq
Diffstat (limited to 'compiler/rustc_parse/src/parser')
-rw-r--r--compiler/rustc_parse/src/parser/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs
index 4a996f89a9a..33efdc84417 100644
--- a/compiler/rustc_parse/src/parser/mod.rs
+++ b/compiler/rustc_parse/src/parser/mod.rs
@@ -898,6 +898,7 @@ impl<'a> Parser<'a> {
                             }
 
                             // Attempt to keep parsing if it was an omitted separator.
+                            self.last_unexpected_token_span = None;
                             match f(self) {
                                 Ok(t) => {
                                     // Parsed successfully, therefore most probably the code only