diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-06-07 14:41:31 +0100 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-06-07 14:41:31 +0100 |
commit | 2a6b363b44e335af5f26ac503461ef15cca82ace (patch) | |
tree | a818d95421f791dcd58e8d42e34dfe0cd6dac305 /crates/ra_parser/src/parser.rs | |
parent | b81d9a4d452abd49553f78c478f486632be8f92e (diff) | |
parent | 205a8278a9da4bc1289449b916468e972fb624fc (diff) |
Merge #1383
1383: fix: never type with binding r=matklad a=csmoe
Closes https://github.com/rust-analyzer/rust-analyzer/issues/1326
r? @matklad
Co-authored-by: csmoe <[email protected]>
Diffstat (limited to 'crates/ra_parser/src/parser.rs')
-rw-r--r-- | crates/ra_parser/src/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_parser/src/parser.rs b/crates/ra_parser/src/parser.rs index 8f654f04c..8a2e253ac 100644 --- a/crates/ra_parser/src/parser.rs +++ b/crates/ra_parser/src/parser.rs | |||
@@ -272,7 +272,7 @@ impl<'t> Parser<'t> { | |||
272 | T![=] if jn1 && la2 == T![=] => Some((T![==], 2)), | 272 | T![=] if jn1 && la2 == T![=] => Some((T![==], 2)), |
273 | T![=] if jn1 && la2 == T![>] => Some((T![=>], 2)), | 273 | T![=] if jn1 && la2 == T![>] => Some((T![=>], 2)), |
274 | 274 | ||
275 | T![!] if la2 == T![=] => Some((T![!=], 2)), | 275 | T![!] if jn1 && la2 == T![=] => Some((T![!=], 2)), |
276 | T![-] if la2 == T![>] => Some((T![->], 2)), | 276 | T![-] if la2 == T![>] => Some((T![->], 2)), |
277 | _ => None, | 277 | _ => None, |
278 | } | 278 | } |