From 0f70290b6ee4cd0c8dbca90f78c9c121ef71c126 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 20 Sep 2019 16:23:24 +0300 Subject: don't confuse macro with != closes #1871 --- crates/ra_parser/src/grammar/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_parser') 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) { let m = p.start(); paths::type_path(p); - let kind = if p.at(T![!]) { + let kind = if p.at(T![!]) && !p.at(T![!=]) { items::macro_call_after_excl(p); MACRO_CALL } else { -- cgit v1.2.3