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:
kennytm 2017-11-10 17:07:09 +08:00 committed by GitHub
commit 20e11db8f7
1 changed files with 1 additions and 0 deletions

View File

@ -927,6 +927,7 @@ impl<T> AtomicPtr<T> {
}
}
#[cfg(target_has_atomic = "ptr")]
#[stable(feature = "atomic_from", since = "1.23.0")]
impl<T> From<*mut T> for AtomicPtr<T> {
#[inline]