mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
parser: simplify parse_pat_with_or
.
This commit is contained in:
parent
5f57feec0a
commit
f852c7ce1c
@ -127,7 +127,7 @@ impl<'a> Parser<'a> {
|
||||
break;
|
||||
}
|
||||
|
||||
pats.push(self.parse_pat_with_range_pat(true, expected)?);
|
||||
pats.push(self.parse_pat(expected)?);
|
||||
}
|
||||
let or_pattern_span = lo.to(self.prev_span);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user