about summary refs log tree commit diff
path: root/src/liballoc/lib.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2018-07-05 16:44:13 -0500
committerJorge Aparicio <jorge@japaric.io>2018-07-05 16:52:46 -0500
commit0ed32313a223dbe1a1d5f61cd66d533992e26f6d (patch)
tree7fc70f68da53f422210720afc4a3a0c0dd291c6b /src/liballoc/lib.rs
parentbbf688a84de7001d033764b848a50cbad42f3d5a (diff)
downloadrust-0ed32313a223dbe1a1d5f61cd66d533992e26f6d.tar.gz
rust-0ed32313a223dbe1a1d5f61cd66d533992e26f6d.zip
#[cfg(target_has_atomic_cas)] -> #[cfg(target_has_atomic = "cas")]
Diffstat (limited to 'src/liballoc/lib.rs')
-rw-r--r--src/liballoc/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 66bf8de1993..35bf8d1b792 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -86,7 +86,6 @@
 #![feature(box_patterns)]
 #![feature(box_syntax)]
 #![feature(cfg_target_has_atomic)]
-#![cfg_attr(not(stage0), feature(cfg_target_has_atomic_cas))]
 #![feature(coerce_unsized)]
 #![feature(collections_range)]
 #![feature(const_fn)]
@@ -163,8 +162,10 @@ mod boxed {
 #[cfg(test)]
 mod boxed_test;
 pub mod collections;
-#[cfg_attr(stage0, cfg(target_has_atomic = "ptr"))]
-#[cfg_attr(not(stage0), cfg(all(target_has_atomic = "ptr", target_has_atomic_cas)))]
+#[cfg(any(
+    all(stage0, target_has_atomic = "ptr"),
+    all(not(stage0), target_has_atomic = "ptr", target_has_atomic = "cas")
+))]
 pub mod sync;
 pub mod rc;
 pub mod raw_vec;