You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here how it looks like in function that is not annotated:
You can see that I can get a list of references (when executing go to definition on variable declaration) and references are highlighted with gray box.
Here how it looks like in function that is annotated:
Go to definition does nothing, and references are not highlighted.
However if I try go to definition on one of usages, it will jump me to declaration.
I tried to add this configuration in VS Code, but it did not made any difference:
rust-analyzer version: 65fbe0a 2022-04-18 stable
rustc version: rustc 1.60.0 (7737e0b5c 2022-04-04)
relevant settings: -
When annotating function with proc-macro, resolving references inside such a function does not behaves as expected:
In my case, this is
tracing::instrument
proc macro.Code example:
Here how it looks like in function that is not annotated:

You can see that I can get a list of references (when executing go to definition on variable declaration) and references are highlighted with gray box.
Here how it looks like in function that is annotated:

Go to definition does nothing, and references are not highlighted.
However if I try go to definition on one of usages, it will jump me to declaration.
I tried to add this configuration in VS Code, but it did not made any difference:
The text was updated successfully, but these errors were encountered: