rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

`unresolved-macro-call` triggered for `#[derive(...)]` whenever a `macro_rules! derive` macro is defined in the same scope

Open repnop opened this issue 2 years ago • 0 comments

rust-analyzer version: rust-analyzer version: 0.0.0 (https://github.com/rust-lang/rust-analyzer/commit/5342f47f4276641ddb5f0a5e08fb307742d6cdc4 2022-07-09)

rustc version: rustc 1.62.0 (a8314ef7d 2022-06-27)

relevant settings: none

macro_rules! derive {
    () => {};
}

#[derive(Debug)] // <-- unresolved macro `derive`
pub struct Bar;

compiles successfully, however

repnop avatar Jul 09 '22 22:07 repnop