Skip to content

Commit f852c7c

Browse files
committed
parser: simplify parse_pat_with_or.
1 parent 5f57fee commit f852c7c

File tree

1 file changed

+1
-1
lines changed
  • src/libsyntax/parse/parser

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser/pat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl<'a> Parser<'a> {
127127
break;
128128
}
129129

130-
pats.push(self.parse_pat_with_range_pat(true, expected)?);
130+
pats.push(self.parse_pat(expected)?);
131131
}
132132
let or_pattern_span = lo.to(self.prev_span);
133133

0 commit comments

Comments
 (0)