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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue