Wrong information when macros have the same name #13821
Labels
A-macro
macro expansion
A-nameres
name, path and module resolution
C-bug
Category: bug
S-actionable
Someone could pick this issue up and work on it right now
rust-analyzer version: 0.3.1325-standalone (9ed1829 2022-12-17)
rustc version: 1.66.0 (69f9c33d7 2022-12-12)
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTUP_HOME
orCARGO_HOME
)A reproducible example:
Cargo.toml
:lib.rs
:main.rs
:When editing
main.rs
, rust-analyzer seems to interpretvec!
inprintln!
as thevec!
in the standard library (hover).The same bug happens when using macros from another crate, like the
column!
iniced
, but not when the macro is defined in the same file.The text was updated successfully, but these errors were encountered: