From 47ed4738d927c5415956f5420e4d633917111398 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 9 Nov 2017 00:20:55 +0100 Subject: [PATCH] fix core for targets with max-atomic-width = 0 closes #45802 --- 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 cd3dd9ce1399e..b7cf6d778a2f9 100644 --- a/src/libcore/sync/atomic.rs +++ b/src/libcore/sync/atomic.rs @@ -927,6 +927,7 @@ impl AtomicPtr { } } +#[cfg(target_has_atomic = "ptr")] #[stable(feature = "atomic_from", since = "1.23.0")] impl From<*mut T> for AtomicPtr { #[inline]