From 5f8010443153036c887c917e1580e6af2d296361 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Tue, 2 Aug 2016 01:40:18 -0500 Subject: [PATCH] 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. --- src/libcore/sync/atomic.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index 47d9deb62ff65..2a7a0b6232936 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::*;