about summary refs log tree commit diff
path: root/src/liballoc_jemalloc
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_jemalloc
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_jemalloc')
-rw-r--r--src/liballoc_jemalloc/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc_jemalloc/lib.rs b/src/liballoc_jemalloc/lib.rs
index 91d229b819d..b009dfd8c75 100644
--- a/src/liballoc_jemalloc/lib.rs
+++ b/src/liballoc_jemalloc/lib.rs
@@ -16,6 +16,7 @@
             reason = "this library is unlikely to be stabilized in its current \
                       form or name",
             issue = "27783")]
+#![cfg_attr(not(stage0), deny(warnings))]
 #![feature(allocator)]
 #![feature(libc)]
 #![feature(staged_api)]