From 30b0464ed8366636a1db510bf0cf0b1ba0203b50 Mon Sep 17 00:00:00 2001 From: Jake Heinz Date: Wed, 1 Dec 2021 12:26:27 +0000 Subject: [PATCH] add a fixme: --- crates/ide/src/syntax_highlighting/highlight.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ide/src/syntax_highlighting/highlight.rs b/crates/ide/src/syntax_highlighting/highlight.rs index 2f4dab4967b..b8177b4ab6c 100644 --- a/crates/ide/src/syntax_highlighting/highlight.rs +++ b/crates/ide/src/syntax_highlighting/highlight.rs @@ -281,6 +281,8 @@ fn highlight_name_ref( return if syntactic_name_ref_highlighting { highlight_name_ref_by_syntax(name_ref, sema, krate) } else { + // FIXME: Workaround for https://github.com/rust-analyzer/rust-analyzer/issues/10708 + // // Some popular proc macros (namely async_trait) will rewrite `self` in such a way that it no // longer resolves via NameRefClass. If we can't be resolved, but we know we're a self token, // within a function with a self param, pretend to still be `self`, rather than