fix core for targets with max-atomic-width = 0

closes #45802
This commit is contained in:
Jorge Aparicio 2017-11-09 00:20:55 +01:00
parent 02004ef783
commit 47ed4738d9
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]