about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-08-18 16:55:52 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-08-24 21:32:48 +0200
commitf852c7ce1c6f55bc816d90c6e7f8e9205bb6c6f2 (patch)
tree5066105de4fb9334a39d940f73c4bf0452bd7365 /src/libsyntax/parse/parser
parent5f57feec0a3038ffc085ba897717b4ffd75445ee (diff)
downloadrust-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.rs2
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);