rust-lang / rust-analyzer

A Rust compiler front-end for IDEs
https://rust-analyzer.github.io/
Apache License 2.0
14.25k stars 1.61k forks source link

allow non_camel_case_types not respected in submodule #17883

Closed kzhui125 closed 1 month ago

kzhui125 commented 2 months ago

rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)

rustc version:

rust-analyzer version: 0.3.2070-standalone (0daeb5c0b 2024-08-10)

rustc 1.80.1 (3f5fd8dd4 2024-08-06)

editor or extension:

VSCode 1.92.1

code snippet to reproduce:

src/lib.rs

#[allow(dead_code, non_camel_case_types)]
pub mod t1;

src/t1.rs

type f1 = i32;
image
lnicola commented 2 months ago

CC #9803.

maia-s commented 1 month ago

I get this too. cargo/rustc does respect the allow, so this is a rust-analyzer bug

rust-analyzer version: 0.3.2104-standalone (08c7bbc2d 2024-09-06)

ChayimFriedman2 commented 1 month ago

Oh this should be fixed now with my rewrite of lint handling (https://github.com/rust-lang/rust-analyzer/pull/18099).