Uh oh!
There was an error while loading. Please reload this page.
Set deny-warnings = false in contributor defaults - #77492
Conversation
rust-highfive
commented
Oct 3, 2020
(rust_highfive has picked a reviewer for you, use r? to override) |
This makes it easier to make rapid changes without having to constantly fix warnings.
nagisa
commented
Oct 3, 2020
@bors r+ |
bors
commented
Oct 3, 2020
📌 Commit b22e039 has been approved by |
joshtriplett
commented
Oct 3, 2020
@jyn514 If we're going to change this default, can we make sure there's some indication at the end of a build that a warning occurred, so it doesn't get lost? |
@joshtriplett rustc will already print 'x warnings generated' at the end, won't it? Are you asking to collect all of those messages per-crate together into a single message? That seems like it would need cargo support. |
joshtriplett
commented
Oct 3, 2020
@jyn514 |
Currently, rustc will print that once for each crate that's built, but like you said it might get pushed off the screen if there are a lot of crates. Printing the sum at the very end sounds useful but I'd rather not try to parse diagnostics. I think cargo already uses |
joshtriplett
commented
Oct 3, 2020
@jyn514 I'd be fine with that, but I think that needs to happen before allowing warnings by default, or contributors will miss warnings entirely. |
jyn514
commented
Oct 3, 2020
CI denies warnings, so it will be picked up by the test suite. Are you worried people will push changes without looking at the warnings and have to spend time fixing it after the fact? That's a valid concern but it's no worse than forgetting to run |
Also, to be clear - all of these defaults are opt-in, not opt-out. Even if you opt-in with |
joshtriplett
commented
Oct 3, 2020
via email
On Sat, Oct 03, 2020 at 04:35:38PM -0700, Joshua Nelson wrote:
CI denies warnings, so it will be picked up by the test suite. Are you worried people will push changes without looking at the warnings and have to spend time fixing it after the fact? Yes, and further that they'll feel like they would have preferred to fix
them before submitting but not have known to. That can be stressful for
contributors, especially new contributors. |
jyn514
commented
Oct 3, 2020
Okay, that's reasonable. @bors r- |
jyn514
commented
Oct 3, 2020
Blocked on rust-lang/cargo#8749 |
bors
commented
Oct 6, 2020
☔ The latest upstream changes (presumably #77606) made this pull request unmergeable. Please resolve the merge conflicts. Note that reviewers usually do not review pull requests until merge conflicts are resolved! Once you resolve the conflicts, you should change the labels applied by bors to indicate that your PR is ready for review. Post this as a comment to change the labels: |
jyn514
commented
Feb 7, 2022
I am not planning to follow up on the cargo side of this. |
This makes it easier to make rapid changes without having to constantly
fix warnings.