about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2017-05-20 17:48:15 -0600
committerGitHub <noreply@github.com>2017-05-20 17:48:15 -0600
commit950e4266e61def05d14f7729094afa2e7ad00eba (patch)
tree340667c4d10c186a027385b145fc2c152e20db36 /src/libcore
parent2dc15593602898d4799e6a213d3a163cac1513c7 (diff)
parente4f9db7b8f36edcc5bc3d9d0e18d7fb0f6b55bc1 (diff)
downloadrust-950e4266e61def05d14f7729094afa2e7ad00eba.tar.gz
rust-950e4266e61def05d14f7729094afa2e7ad00eba.zip
Rollup merge of #42098 - japaric:gh42097, r=Mark-Simulacrum
core: fix unused_macro warning

when compiling the crate for a target with max-atomic-width = 0

fixes #42097
Diffstat (limited to 'src/libcore')
-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,