mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Merge #1881
1881: don't confuse macro with != r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
c733993658
3 changed files with 70 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue