diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index d52302194a28b..4c6ff4d1bb475 100644 --- a/src/libcore/sync/atomic.rs +++ b/src/libcore/sync/atomic.rs @@ -924,6 +924,13 @@ impl AtomicPtr { } } +#[cfg(target_has_atomic = "8")] +#[stable(feature = "atomic_bool_from", since = "1.24.0")] +impl From for AtomicBool { + #[inline] + fn from(b: bool) -> Self { Self::new(b) } +} + #[cfg(target_has_atomic = "ptr")] #[stable(feature = "atomic_from", since = "1.23.0")] impl From<*mut T> for AtomicPtr {