This commit is contained in:
Aleksey Kladov
2018-09-08 10:38:53 +03:00
parent febbc9acdd
commit 749907d330
5 changed files with 14 additions and 9 deletions

View File

@@ -102,7 +102,7 @@ fn tuple_pat_fields(p: &mut Parser) {
match p.current() {
DOTDOT => p.bump(),
_ => {
if !PATTERN_FIRST.contains(p.current()) {
if !p.at_ts(PATTERN_FIRST) {
p.error("expected a pattern");
break;
}