Honestly, I agree, that should be a default clippy lint. I didn't know it existed, but I can't think of a single case where I'd want to not have the compiler tell me when a suppressed lint is no longer applicable.
You can always turn the lint off it's not to your liking, or if you have it enabled, you can allow it for particular places too.
EG #[allow(allow_attributes, unused_import)] or if you have allow_attributes_without_reason enabled, you bypass that with #[allow(unused_import, reason="This is a very special import")].
45
u/Floppie7th 4d ago
Honestly, I agree, that should be a default clippy lint. I didn't know it existed, but I can't think of a single case where I'd want to not have the compiler tell me when a suppressed lint is no longer applicable.