about summary refs log tree commit diff
path: root/src/librustc_unicode
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-01-21 15:26:19 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-01-24 20:35:55 -0800
commit2273b5202354b3091f493cfcfa5bf48165e92b1e (patch)
treeb2278359e6147284131500eed2706c8a93c9fbe0 /src/librustc_unicode
parent6866f1361debf5857856ff95eeee806bb7bea738 (diff)
downloadrust-2273b5202354b3091f493cfcfa5bf48165e92b1e.tar.gz
rust-2273b5202354b3091f493cfcfa5bf48165e92b1e.zip
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
Diffstat (limited to 'src/librustc_unicode')
-rw-r--r--src/librustc_unicode/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_unicode/lib.rs b/src/librustc_unicode/lib.rs
index 161da079110..4cbcfd5a0b2 100644
--- a/src/librustc_unicode/lib.rs
+++ b/src/librustc_unicode/lib.rs
@@ -29,6 +29,7 @@
        html_playground_url = "https://play.rust-lang.org/",
        issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
        test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
+#![cfg_attr(not(stage0), deny(warnings))]
 #![no_std]
 
 #![feature(core_char_ext)]