diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-18 16:55:52 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-24 21:32:48 +0200 |
| commit | f852c7ce1c6f55bc816d90c6e7f8e9205bb6c6f2 (patch) | |
| tree | 5066105de4fb9334a39d940f73c4bf0452bd7365 /src/libsyntax/parse/parser | |
| parent | 5f57feec0a3038ffc085ba897717b4ffd75445ee (diff) | |
| download | rust-f852c7ce1c6f55bc816d90c6e7f8e9205bb6c6f2.tar.gz rust-f852c7ce1c6f55bc816d90c6e7f8e9205bb6c6f2.zip | |
parser: simplify `parse_pat_with_or`.
Diffstat (limited to 'src/libsyntax/parse/parser')
| -rw-r--r-- | src/libsyntax/parse/parser/pat.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser/pat.rs b/src/libsyntax/parse/parser/pat.rs index e52d0bc9d48..89688a287a7 100644 --- a/src/libsyntax/parse/parser/pat.rs +++ b/src/libsyntax/parse/parser/pat.rs @@ -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); |
