feat(compile): Stabilize build.warnings - #16796
Conversation
|
r? @weihanglo rustbot has assigned @weihanglo. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
@rfcbot fcp merge cargo |
|
Team member @epage has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
|
Right now, we exactly mirror My one concern is with
From this, I would lean towards making |
View all comments
What does this PR try to resolve?
This allows users to either
--deny-warningsfunctionality for all commands. #8424)build.warningsserves a similar purpose asRUSTFLAGS=-Dwarnings/RUSTFLAGS=-Awarningsbut without invalidation caches.build.warnings = "deny"will--verbose --verbose--keep-going(this matches
RUSTFLAGS=-Dwarnings)These conditions were not originally met and also came as feedback from rust-lang/rust which has been dogfooding this since the merge of rust-lang/rust#148332.
build.warnings = "allow"willRUSTFLAGS=-Awarningswill suppress rustc hard warnings--verbose --verboseCloses #14802
How to test and review this PR?
My main concern over this was how the naming scheme would extend to rust-lang/rfcs#3730 but that RFC has not gained much interest
buildseems as good of a home as any.