From 2273b5202354b3091f493cfcfa5bf48165e92b1e Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 21 Jan 2016 15:26:19 -0800 Subject: mk: Move from `-D warnings` to `#![deny(warnings)]` 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 --- src/libtest/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libtest') diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index ac5b235854a..130ce3a9637 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -31,6 +31,7 @@ html_favicon_url = "https://doc.rust-lang.org/favicon.ico", html_root_url = "https://doc.rust-lang.org/nightly/", test(attr(deny(warnings))))] +#![cfg_attr(not(stage0), deny(warnings))] #![feature(asm)] #![feature(box_syntax)] -- cgit 1.4.1-3-g733a5