-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Lint to warn on use of #[deny(lint)]
in code
#13963
Comments
IMO there are a lot of perfectly valid and good use cases for local denys, e.g. |
How is that different than The only reason I could see for putting those in is to instead |
Can you explain what you mean by "and then denying"? Like, I have my editor set up to run clippy on save, so Also, |
So if I'm understanding correctly, these cases are important enough that you want immediate, blocking feedback on, rather than seeing it in the list of warnings and deciding to act on it? Maybe I'm biased by my own workflows or the types of projects I work on but I've never needed to do that and I suspect it would be limited if I did step into areas you mentioned, like |
What it does
Warn on use of
#[deny(lint)]
/#![deny(lint)]
Advantage
Drawbacks
allow
this warning. A parent scope can do it. Unsure if you could in the same scope with!
.Cargo.toml
[lints]
could alsoExample
Could be written as:
with the suggestion to turn warnings into errors where relevant (e.g. CI)
The text was updated successfully, but these errors were encountered: