mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Rollup merge of #45882 - japaric:gh45802, r=kennytm
fix core for targets with max-atomic-width = 0 closes #45802 cc @kennytm
This commit is contained in:
commit
20e11db8f7
@ -927,6 +927,7 @@ impl<T> AtomicPtr<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_has_atomic = "ptr")]
|
||||||
#[stable(feature = "atomic_from", since = "1.23.0")]
|
#[stable(feature = "atomic_from", since = "1.23.0")]
|
||||||
impl<T> From<*mut T> for AtomicPtr<T> {
|
impl<T> From<*mut T> for AtomicPtr<T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
|
Loading…
Reference in New Issue
Block a user