Rollup merge of #90994 - Badel2:issue-90993, r=estebank

Fix ICE `#90993`: add missing call to cancel

Fix #90993
This commit is contained in:
Matthias Krüger 2021-11-20 22:33:49 +01:00 committed by GitHub
commit 3d4f3ee71d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
338 changed files with 38 additions and 1 deletions

View File

@ -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);

Some files were not shown because too many files have changed in this diff Show More