about summary refs log tree commit diff
path: root/src/liballoc_system
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-01-26 22:10:10 +0000
committerbors <bors@rust-lang.org>2016-01-26 22:10:10 +0000
commit4b615854f00ba17ad704155e1d3196c17a6edb62 (patch)
tree7fb690a89170c12be9c66adb00d93ddf9aa377c3 /src/liballoc_system
parenta9e139b66c786423334c5f09f71ec8b0492742f8 (diff)
parentcb343c33acf0f9833d8d6eb637234acf4321976b (diff)
downloadrust-4b615854f00ba17ad704155e1d3196c17a6edb62.tar.gz
rust-4b615854f00ba17ad704155e1d3196c17a6edb62.zip
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
Diffstat (limited to 'src/liballoc_system')
-rw-r--r--src/liballoc_system/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc_system/lib.rs b/src/liballoc_system/lib.rs
index ffb6999d6e3..8a9e32daa72 100644
--- a/src/liballoc_system/lib.rs
+++ b/src/liballoc_system/lib.rs
@@ -12,6 +12,7 @@
 #![crate_type = "rlib"]
 #![no_std]
 #![allocator]
+#![cfg_attr(not(stage0), deny(warnings))]
 #![unstable(feature = "alloc_system",
             reason = "this library is unlikely to be stabilized in its current \
                       form or name",