diff options
| author | Badel2 <2badel2@gmail.com> | 2021-11-18 00:01:49 +0100 |
|---|---|---|
| committer | Badel2 <2badel2@gmail.com> | 2021-11-20 14:32:25 +0100 |
| commit | 77a105c91f5aff0d6749210cc18bc8970881c3c4 (patch) | |
| tree | 2999b766eec4b4d1f90ab068ed1a3117dc2aad90 /compiler/rustc_parse/src | |
| parent | 3d789740b09002e3d2be3ab1cf53fdca3995034c (diff) | |
| download | rust-77a105c91f5aff0d6749210cc18bc8970881c3c4.tar.gz rust-77a105c91f5aff0d6749210cc18bc8970881c3c4.zip | |
Fix ICE `#90993`: add missing call to cancel
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/pat.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/pat.rs b/compiler/rustc_parse/src/parser/pat.rs index b03b5459981..3b5a297103c 100644 --- a/compiler/rustc_parse/src/parser/pat.rs +++ b/compiler/rustc_parse/src/parser/pat.rs @@ -817,7 +817,7 @@ impl<'a> Parser<'a> { // Ensure the user doesn't receive unhelpful unexpected token errors self.bump(); if self.is_pat_range_end_start(0) { - let _ = self.parse_pat_range_end(); + let _ = self.parse_pat_range_end().map_err(|mut e| e.cancel()); } self.error_inclusive_range_with_extra_equals(span_with_eq); |
