-
Notifications
You must be signed in to change notification settings - Fork 2k
Support build.warnings #16963
Copy link
Copy link
Open
Labels
A-uiArea: Clippy interface, usage and configurationArea: Clippy interface, usage and configurationC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesT-cargoType: cargo relatedType: cargo related
Metadata
Metadata
Assignees
Labels
A-uiArea: Clippy interface, usage and configurationArea: Clippy interface, usage and configurationC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesCategory: Enhancement of lints, like adding more cases or adding help messagesT-cargoType: cargo relatedType: cargo related
Type
Fields
Give feedbackNo fields configured for issues without a type.
Cargo has stabilized the
build.warningsconfiguration option. When used asbuild.warnings = "deny", this causesbuild,check, etc. to exit with an error status if any warnings are emitted, without changing those warnings to errors individually, and without changing the value ofRUSTFLAGS.For consistency with
cargo check,cargo clippyshould support the same behavior. That is,should exit with a nonzero exit code if there are any warnings. Currently (
clippy 0.1.97 (ad3a598ca4 2026-05-03)), it exits successfully.@rustbot label +A-ui +C-enhancement +T-cargo