diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2016-08-02 01:40:18 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2016-08-02 14:34:40 -0500 |
| commit | 5f8010443153036c887c917e1580e6af2d296361 (patch) | |
| tree | 0d8cc119bb8325080264259a294e8437d893dfc1 /src/libcore/sync | |
| parent | 28ce3e8a55b21a285f7075612d140a44b42eb889 (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.rs | 2 |
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::*; |
