Skip to content

Commit 47ed473

Browse files
committed
fix core for targets with max-atomic-width = 0
closes #45802
1 parent 02004ef commit 47ed473

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/sync/atomic.rs

+1
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,7 @@ impl<T> AtomicPtr<T> {
927927
}
928928
}
929929

930+
#[cfg(target_has_atomic = "ptr")]
930931
#[stable(feature = "atomic_from", since = "1.23.0")]
931932
impl<T> From<*mut T> for AtomicPtr<T> {
932933
#[inline]

0 commit comments

Comments
 (0)