Skip to content

Set deny-warnings = false in contributor defaults - #77492

Closed
jyn514 wants to merge 1 commit into
rust-lang:masterfrom
jyn514:no-deny
Closed

Set deny-warnings = false in contributor defaults#77492
jyn514 wants to merge 1 commit into
rust-lang:masterfrom
jyn514:no-deny

Conversation

@jyn514

Copy link
Copy Markdown
Member

This makes it easier to make rapid changes without having to constantly
fix warnings.

@jyn514jyn514 added C-enhancement Category: An issue proposing an enhancement or a PR with one. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Oct 3, 2020
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @Mark-Simulacrum

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 3, 2020
This makes it easier to make rapid changes without having to constantly
fix warnings.
@jyn514jyn514 added the A-contributor-roadblock Area: Makes things more difficult for new or seasoned contributors to Rust label Oct 3, 2020
@nagisa

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Oct 3, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit b22e039 has been approved by nagisa

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 3, 2020
@joshtriplett

Copy link
Copy Markdown
Member

@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?

@jyn514

jyn514 commented Oct 3, 2020

Copy link
Copy Markdown
MemberAuthor

@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

Copy link
Copy Markdown
Member

@jyn514x warnings generated is fine, as long as that appears in the last few lines of output from ./x.py build or ./x.py test or similar. I wouldn't want it to get pushed off the screen by other builds.

@jyn514

jyn514 commented Oct 3, 2020

Copy link
Copy Markdown
MemberAuthor

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 --error-format=json --json=diagnostic-rendered-ansi, could we add this in cargo instead?

@joshtriplett

Copy link
Copy Markdown
Member

@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

Copy link
Copy Markdown
MemberAuthor

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 x.py fmt IMO.

@jyn514

jyn514 commented Oct 3, 2020

Copy link
Copy Markdown
MemberAuthor

Also, to be clear - all of these defaults are opt-in, not opt-out. Even if you opt-in with profile = "compiler" you can always override specific settings in config.toml.

@joshtriplett

joshtriplett commented Oct 3, 2020 via email

Copy link
Copy Markdown
Member

@jyn514

Copy link
Copy Markdown
MemberAuthor

Okay, that's reasonable.

@bors r-

@borsbors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 3, 2020
@jyn514jyn514 added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 3, 2020
@jyn514

Copy link
Copy Markdown
MemberAuthor

Blocked on rust-lang/cargo#8749

@bors

bors commented Oct 6, 2020

Copy link
Copy Markdown
Collaborator

☔ 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:

@rustbot modify labels: +S-waiting-on-review -S-waiting-on-author

@apirainoapiraino added the T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. label Oct 14, 2021
@jyn514

Copy link
Copy Markdown
MemberAuthor

I am not planning to follow up on the cargo side of this.

@jyn514jyn514 closed this Feb 7, 2022
@jyn514
jyn514 deleted the no-deny branch February 7, 2022 00:26
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustC-enhancementCategory: An issue proposing an enhancement or a PR with one.S-blockedStatus: Blocked on something else such as an RFC or other implementation work.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@jyn514@rust-highfive@nagisa@bors@joshtriplett@Mark-Simulacrum@apiraino