From e4f9db7b8f36edcc5bc3d9d0e18d7fb0f6b55bc1 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 18 May 2017 23:33:08 -0500 Subject: [PATCH] core: fix unused_macro warning when compiling the crate for a target with max-atomic-width = 0 fixes #42097 --- src/libcore/sync/atomic.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index c13fd5583543e..d647a94a1efde 100644 --- a/src/libcore/sync/atomic.rs +++ b/src/libcore/sync/atomic.rs @@ -918,6 +918,7 @@ impl AtomicPtr { } } +#[cfg(target_has_atomic = "ptr")] macro_rules! atomic_int { ($stable:meta, $stable_cxchg:meta,