Skip to content

Commit

Permalink
core: fix cargo build for targets with "max-atomic-width": 0
Browse files Browse the repository at this point in the history
This crate was failing to compile due to dead_code/unused_imports
warnings. This commits disables these two lints for these targets.
  • Loading branch information
Jorge Aparicio committed Aug 2, 2016
1 parent 28ce3e8 commit 5f80104
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcore/sync/atomic.rs
Expand Up @@ -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::*;

Expand Down

0 comments on commit 5f80104

Please sign in to comment.