Unnamed repository; edit this file 'description' to name the repository.
add a fixme:
Jake Heinz 2021-12-01
parent ba92bb1 · commit 30b0464
-rw-r--r--crates/ide/src/syntax_highlighting/highlight.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/highlight.rs b/crates/ide/src/syntax_highlighting/highlight.rs
index 2f4dab4967..b8177b4ab6 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