diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-09-20 17:06:58 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-20 17:06:58 +0100 |
commit | 7d6c3de890744a143ab2086a79f21fe4ff06008a (patch) | |
tree | d739277fc164ef2ac2facd0d463b5ab33d5ff45f /crates/ra_parser | |
parent | 3575f7c4a2c20ed84626e2652be195fc26dd1add (diff) | |
parent | 2d99e6de278bdd1f2b094c818a960734c9b7db0b (diff) |
Merge #1886
1886: Simplify match arm r=matklad a=kjeremy
Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'crates/ra_parser')
-rw-r--r-- | crates/ra_parser/src/grammar/patterns.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar/patterns.rs b/crates/ra_parser/src/grammar/patterns.rs index 877ae5b7a..aa9a6d18e 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) { | |||
167 | // A trailing `..` is *not* treated as a DOT_DOT_PAT. | 167 | // A trailing `..` is *not* treated as a DOT_DOT_PAT. |
168 | T![.] if p.at(T![..]) => p.bump(T![..]), | 168 | T![.] if p.at(T![..]) => p.bump(T![..]), |
169 | 169 | ||
170 | IDENT if p.nth(1) == T![:] => record_field_pat(p), | 170 | IDENT | INT_NUMBER if p.nth(1) == T![:] => record_field_pat(p), |
171 | INT_NUMBER if p.nth(1) == T![:] => record_field_pat(p), | ||
172 | T!['{'] => error_block(p, "expected ident"), | 171 | T!['{'] => error_block(p, "expected ident"), |
173 | T![box] => { | 172 | T![box] => { |
174 | box_pat(p); | 173 | box_pat(p); |