-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
deny(warnings) doesn't affect all warnings, only those generated through the lint system #21204
Comments
|
The documentation is correct. But the behavior is extremely surprising and is likely to cause major trouble. This shouldn't be too hard to fix; we just need to make |
There is code to make Perhaps SpanHandler just needs a callback to do arbitrary error transformation that can be hooked into the lint system. |
Why even have |
That sounds good to me if it can be done. |
This is still an issue, although there's still not many uses of |
Hi. I just ran into this issue for btw, I don't understand what a |
The problem still exists. |
There’s a good reason to not support |
@nagisa Didn't we solve that with |
…ation detail). See: rust #21204 rust-lang/rust#21204
Triage: #![deny(warnings)]
fn foo() {
} at least now properly errors. I'm not sure if the compiler's warning APIs are the same as when this bug was filed, or if this issue persists. Many @Manishearth or someone else from clippy knows? |
I'm pretty sure I've seen deny(warnings) apply to non-lint warnings (this broke a rustup for firefox where we weren't able to |
Nope, this is still the case. Check out: #![deny(warnings)]
fn main() {
let _a = "aa"_;
} (non-lint warning taken from #42326 ) |
One problem with this one is that the example from @Manishearth |
Given the insight from @iluuu1994, I don't think this issue should be tagged as easy. |
No description provided.
The text was updated successfully, but these errors were encountered: