-
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
Set deny-warnings = false
in contributor defaults
#77492
Conversation
(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.
@bors r+ |
📌 Commit b22e039 has been approved by |
@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. |
@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 |
@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. |
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 |
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.
|
Okay, that's reasonable. @bors r- |
Blocked on rust-lang/cargo#8749 |
☔ 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:
|
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.