about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2016-08-02 01:40:18 -0500
committerJorge Aparicio <japaricious@gmail.com>2016-08-02 14:34:40 -0500
commit5f8010443153036c887c917e1580e6af2d296361 (patch)
tree0d8cc119bb8325080264259a294e8437d893dfc1 /src/libcore/sync
parent28ce3e8a55b21a285f7075612d140a44b42eb889 (diff)
core: fix `cargo build` for targets with "max-atomic-width": 0
This crate was failing to compile due to dead_code/unused_imports
warnings. This commits disables these two lints for these targets.
Diffstat (limited to 'src/libcore/sync')
-rw-r--r--src/libcore/sync/atomic.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index 47d9deb62ff..2a7a0b62329 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -74,6 +74,8 @@
 //! ```
 
 #![stable(feature = "rust1", since = "1.0.0")]
+#![cfg_attr(not(target_has_atomic = "8"), allow(dead_code))]
+#![cfg_attr(not(target_has_atomic = "8"), allow(unused_imports))]
 
 use self::Ordering::*;