diff options
| author | Krishna Ketan Rai <prafulrai522@gmail.com> | 2025-07-21 17:13:43 +0530 |
|---|---|---|
| committer | Krishna Ketan Rai <prafulrai522@gmail.com> | 2025-07-21 17:13:43 +0530 |
| commit | 92111dcc67a4f19c6a6e8f22633b2f88f64ed6bb (patch) | |
| tree | f6120e5215b8a1b29930666c191c3f1b7407fb78 /compiler/rustc_codegen_gcc | |
| parent | 0b168815a46bd8132871b909405bf15f12a5438c (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
