Skip to content

Commit 20e11db

Browse files
authored
Rollup merge of rust-lang#45882 - japaric:gh45802, r=kennytm
fix core for targets with max-atomic-width = 0 closes rust-lang#45802 cc @kennytm
2 parents e26bcbe + 47ed473 commit 20e11db

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)