-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Warnings about removed lints may want to itself become a lint #31141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As another concrete example, the |
cc #30878 |
Funnily enough, the warning for an invalid lint is actually a lint so you can disable warnings for invalid lints, but not removed lints. |
I agree. |
This adds the `renamed_and_removed_lints` warning, defaulting to the warning level. Fixes rust-lang#31141
Make warnings of renamed and removed lints themselves lints This adds the `renamed_and_removed_lints` warning, defaulting to the warning level. Fixes #31141
Right now the warnings about a removed lint is a full-fledged warning in the compiler, which primarily means that it is not affected by
--cap-lints allow
. Note that-A warnings
does indeed suppress the warning, but Cargo no longer pases-A warnings
.This ends up meaning that if you just updated to Rust 1.6 (where
raw_pointer_derive
was removed) and recompile your project, you're actually pretty likely to get tons of these warnings from all your upstream dependencies. (although you yourself are unlikely to haveallow(raw_pointer_derive)
. Ideally these warnings would behave like other lint warnings in Cargo, which is that they are ignored in dependencies by default (e.g. suppressed via--cap-lints allow
).cc @wycats (reporter)
cc @brson (implementor)
The text was updated successfully, but these errors were encountered: