]> git.lizzy.rs Git - rust.git/commitdiff
fix core for targets with max-atomic-width = 0
authorJorge Aparicio <jorge@japaric.io>
Wed, 8 Nov 2017 23:20:55 +0000 (00:20 +0100)
committerJorge Aparicio <jorge@japaric.io>
Wed, 8 Nov 2017 23:20:55 +0000 (00:20 +0100)
closes #45802

src/libcore/sync/atomic.rs

index cd3dd9ce1399e2e2f604549b425f8be0df078a2e..b7cf6d778a2f9d4298af22a2fe04641ff8536d98 100644 (file)
@@ -927,6 +927,7 @@ pub fn compare_exchange_weak(&self,
     }
 }
 
+#[cfg(target_has_atomic = "ptr")]
 #[stable(feature = "atomic_from", since = "1.23.0")]
 impl<T> From<*mut T> for AtomicPtr<T> {
     #[inline]