From: bors Date: Tue, 26 Jan 2016 22:10:10 +0000 (+0000) Subject: Auto merge of #31120 - alexcrichton:attribute-deny-warnings, r=brson X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=4b615854f00ba17ad704155e1d3196c17a6edb62;p=rust.git Auto merge of #31120 - alexcrichton:attribute-deny-warnings, r=brson This commit removes the `-D warnings` flag being passed through the makefiles to all crates to instead be a crate attribute. We want these attributes always applied for all our standard builds, and this is more amenable to Cargo-based builds as well. Note that all `deny(warnings)` attributes are gated with a `cfg(stage0)` attribute currently to match the same semantics we have today --- 4b615854f00ba17ad704155e1d3196c17a6edb62 diff --cc src/librustc_data_structures/lib.rs index 20caf7dd0cf,2983590af32..e4b13ff548a --- a/src/librustc_data_structures/lib.rs +++ b/src/librustc_data_structures/lib.rs @@@ -23,7 -23,9 +23,8 @@@ #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", html_favicon_url = "https://www.rust-lang.org/favicon.ico", html_root_url = "https://doc.rust-lang.org/nightly/")] + #![cfg_attr(not(stage0), deny(warnings))] -#![feature(hashmap_hasher)] #![feature(nonzero)] #![feature(rustc_private)] #![feature(staged_api)]