about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2017-05-18 23:33:08 -0500
committerJorge Aparicio <jorge@japaric.io>2017-05-18 23:33:08 -0500
commite4f9db7b8f36edcc5bc3d9d0e18d7fb0f6b55bc1 (patch)
treea6290de28db451c387e91046228c5abf163c9286 /src/libcore/sync
parentb21577e1e80ed7a2470cd3402004b80d1bf0f30d (diff)
downloadrust-e4f9db7b8f36edcc5bc3d9d0e18d7fb0f6b55bc1.tar.gz
rust-e4f9db7b8f36edcc5bc3d9d0e18d7fb0f6b55bc1.zip
core: fix unused_macro warning
when compiling the crate for a target with max-atomic-width = 0

fixes #42097
Diffstat (limited to 'src/libcore/sync')
-rw-r--r--src/libcore/sync/atomic.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index c13fd558354..d647a94a1ef 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -918,6 +918,7 @@ impl<T> AtomicPtr<T> {
     }
 }
 
+#[cfg(target_has_atomic = "ptr")]
 macro_rules! atomic_int {
     ($stable:meta,
      $stable_cxchg:meta,