From 5f41f8be30ea93e4fc86be2faea5e981ff3f8c2f Mon Sep 17 00:00:00 2001 From: varkor Date: Fri, 8 Feb 2019 16:44:50 +0100 Subject: [PATCH] Deny warnings in std stage 0 --- src/bootstrap/builder.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index b0d15e6a5df5f..8540d92f74917 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1018,8 +1018,7 @@ impl<'a> Builder<'a> { cargo.env("RUSTC_VERBOSE", self.verbosity.to_string()); - // in std, we want to avoid denying warnings for stage 0 as that makes cfg's painful. - if self.config.deny_warnings && !(mode == Mode::Std && stage == 0) { + if self.config.deny_warnings { cargo.env("RUSTC_DENY_WARNINGS", "1"); }