**rust-analyzer version**: rust-analyzer version: 0.3.1599-standalone **rustc version**: rustc 1.68.2 (9eb3afe9e 2023-03-27) **relevant settings**: `num_enum == 0.6.1` It is erroneously diagnosing it as nonupper case globals. `cargo build` and `cargo check` works without any warnings.   I tried the built-in macro expand. That line does exist.  If I copied that expansion to the source code directly, everything works fine.  It looks like the `allow` implementation is wrong.