about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_system.rs
diff options
context:
space:
mode:
authorKrishna Ketan Rai <prafulrai522@gmail.com>2025-07-21 17:13:43 +0530
committerKrishna Ketan Rai <prafulrai522@gmail.com>2025-07-21 17:13:43 +0530
commit92111dcc67a4f19c6a6e8f22633b2f88f64ed6bb (patch)
treef6120e5215b8a1b29930666c191c3f1b7407fb78 /compiler/rustc_codegen_gcc/example/alloc_system.rs
parent0b168815a46bd8132871b909405bf15f12a5438c (diff)
downloadrust-92111dcc67a4f19c6a6e8f22633b2f88f64ed6bb.tar.gz
rust-92111dcc67a4f19c6a6e8f22633b2f88f64ed6bb.zip
Fix false positive in useless_attribute with redundant_imports
The useless_attribute lint was incorrectly flagging #[expect(redundant_imports)]
as useless when applied to macro re-exports. This occurred because the lint
didn't recognize 'redundant_imports' as a valid rustc lint name.

This commit:
- Adds 'redundant_imports' to the list of known rustc lints in sym.rs
- Updates the useless_attribute lint to properly handle this case
- Adds a regression test to prevent future false positives
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_system.rs')
0 files changed, 0 insertions, 0 deletions