Skip to content

Commit 3d4f3ee

Browse files
authored
Rollup merge of #90994 - Badel2:issue-90993, r=estebank
Fix ICE `#90993`: add missing call to cancel Fix #90993
2 parents 410d64f + 8c8914e commit 3d4f3ee

File tree

338 files changed

+38
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+38
-1
lines changed

compiler/rustc_parse/src/parser/pat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ impl<'a> Parser<'a> {
817817
// Ensure the user doesn't receive unhelpful unexpected token errors
818818
self.bump();
819819
if self.is_pat_range_end_start(0) {
820-
let _ = self.parse_pat_range_end();
820+
let _ = self.parse_pat_range_end().map_err(|mut e| e.cancel());
821821
}
822822

823823
self.error_inclusive_range_with_extra_equals(span_with_eq);

0 commit comments

Comments
 (0)