Skip to content

Commit 5f41f8b

Browse files
committed
Deny warnings in std stage 0
1 parent 652ae3f commit 5f41f8b

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)