diff options
| author | bors <bors@rust-lang.org> | 2019-02-09 03:54:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-02-09 03:54:31 +0000 |
| commit | 312f3827faa8dc3b8e1dc8c1ad685a6222f16f03 (patch) | |
| tree | 1f2e0c057a60d50d1c7ead89d34ac21fe4e5d9d8 | |
| parent | cb6fafbdf3b09da28b09fa7e87a24658d77dd02f (diff) | |
| parent | 5f41f8be30ea93e4fc86be2faea5e981ff3f8c2f (diff) | |
| download | rust-312f3827faa8dc3b8e1dc8c1ad685a6222f16f03.tar.gz rust-312f3827faa8dc3b8e1dc8c1ad685a6222f16f03.zip | |
Auto merge of #57184 - varkor:deny-warnings-lib, r=Mark-Simulacrum
Deny warnings in libcore and libstd This probably fixes https://github.com/rust-lang/rust/issues/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
| -rw-r--r-- | src/bootstrap/builder.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index b0d15e6a5df..8540d92f749 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"); } |
