-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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 in libcore and libstd #57184
Conversation
rustbuild handles denying warnings. If you want to deny warnings when building std at stage 0 then this exception needs to be removed: Lines 999 to 1002 in 79d8a0f
|
I think we shouldn't remove the exception. I could be convinced that if the max-stage to be built is not 0 then we should do something like |
Ah, I didn't realise this was a deliberate decision. What sort of situations does it make painful? In my experience warnings are usually fixed quite quickly: at worst, it's a |
There's very little point to these kind of warnings (they'll go away when the next beta comes around). While any other kind of warning will be caught at stage 1, it makes for a bad user experience when modifying libstd and only seeing warnings at stage 1 (Since running tests requires stage 1). So I think we should neither silence the warnings nor deny them and just keep the status quo.
It's annoying when you change the compiler so that you need to change libstd, too, and run everything with You can also run into error/warning pingpong between stage 0 and stage 1, because the changes you do to get stage 0 to work end up bricking stage 1 |
Those problems could be addressed by adding a The philosophy of not (implicitly) ignoring warnings seems like a sensible one, even if warnings per se shouldn't be as worrying as errors. |
Adding another option seems fine. I'm pretty neutral on this overall, just don't want to go back to unconditionally denying warnings inside core/std directly (it should be a rustbuild thing). |
Okay, I'll update the pull request soon. |
d404af6
to
0e54bdf
Compare
I've added a |
☔ The latest upstream changes (presumably #57670) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #57957) made this pull request unmergeable. Please resolve the merge conflicts. |
0e54bdf
to
c9ada9f
Compare
c9ada9f
to
5f41f8b
Compare
@Mark-Simulacrum: I've updated the pull request to unconditionally deny stage 0 std warnings, as we discussed. (For context, if someone wants to silence these warnings while developing, they can simply add |
Rustbuild wise this is good. Cc @rust-lang/compiler @bors r+ |
📌 Commit 5f41f8b has been approved by |
⌛ Testing commit 5f41f8b with merge 55294233e1edd1a6dbe25e3769045cad7003682a... |
💔 Test failed - status-appveyor |
@bors retry |
☀️ Test successful - checks-travis, status-appveyor |
This probably fixes #57178 (though there may still be some crates that need warnings denied). At least after this change, rustc currently produces no warnings during compilation.
r? @oli-obk