diff options
author | Aleksey Kladov <[email protected]> | 2019-09-20 14:23:24 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-09-20 14:23:24 +0100 |
commit | 0f70290b6ee4cd0c8dbca90f78c9c121ef71c126 (patch) | |
tree | 4ae08d7c9e1036eb154147b854bd001a1a8247e5 /crates/ra_parser/src | |
parent | 44bab3621d74f1aec922300a3b3f4476907ba2ac (diff) |
don't confuse macro with !=
closes #1871
Diffstat (limited to 'crates/ra_parser/src')
-rw-r--r-- | crates/ra_parser/src/grammar/types.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_parser/src/grammar/types.rs b/crates/ra_parser/src/grammar/types.rs index 0eb28ef09..a5a5b6d73 100644 --- a/crates/ra_parser/src/grammar/types.rs +++ b/crates/ra_parser/src/grammar/types.rs | |||
@@ -256,7 +256,7 @@ fn path_or_macro_type_(p: &mut Parser, allow_bounds: bool) { | |||
256 | let m = p.start(); | 256 | let m = p.start(); |
257 | paths::type_path(p); | 257 | paths::type_path(p); |
258 | 258 | ||
259 | let kind = if p.at(T![!]) { | 259 | let kind = if p.at(T![!]) && !p.at(T![!=]) { |
260 | items::macro_call_after_excl(p); | 260 | items::macro_call_after_excl(p); |
261 | MACRO_CALL | 261 | MACRO_CALL |
262 | } else { | 262 | } else { |