diff --git a/crates/ra_parser/src/grammar/patterns.rs b/crates/ra_parser/src/grammar/patterns.rs index 877ae5b7af..aa9a6d18e0 100644 --- a/crates/ra_parser/src/grammar/patterns.rs +++ b/crates/ra_parser/src/grammar/patterns.rs @@ -167,8 +167,7 @@ fn record_field_pat_list(p: &mut Parser) { // A trailing `..` is *not* treated as a DOT_DOT_PAT. T![.] if p.at(T![..]) => p.bump(T![..]), - IDENT if p.nth(1) == T![:] => record_field_pat(p), - INT_NUMBER if p.nth(1) == T![:] => record_field_pat(p), + IDENT | INT_NUMBER if p.nth(1) == T![:] => record_field_pat(p), T!['{'] => error_block(p, "expected ident"), T![box] => { box_pat(p);