Skip to content

Commit 312f382

Browse files
committed
Auto merge of #57184 - varkor:deny-warnings-lib, r=Mark-Simulacrum
Deny warnings in libcore and libstd This probably fixes #57178 (though there may still be some crates that need warnings denied). At least after this change, rustc currently produces no warnings during compilation. r? @oli-obk
2 parents cb6fafb + 5f41f8b commit 312f382

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bootstrap/builder.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1018,8 +1018,7 @@ impl<'a> Builder<'a> {
10181018

10191019
cargo.env("RUSTC_VERBOSE", self.verbosity.to_string());
10201020

1021-
// in std, we want to avoid denying warnings for stage 0 as that makes cfg's painful.
1022-
if self.config.deny_warnings && !(mode == Mode::Std && stage == 0) {
1021+
if self.config.deny_warnings {
10231022
cargo.env("RUSTC_DENY_WARNINGS", "1");
10241023
}
10251024

0 commit comments

Comments
 (0)