From 652a4bd26cd9adcb9b8bf03c220b0fa430a9893b Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Mon, 27 Nov 2017 01:23:04 +0000 Subject: impl From for AtomicBool --- src/libcore/sync/atomic.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libcore/sync') diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index b7cf6d778a2..352e85d2b08 100644 --- a/src/libcore/sync/atomic.rs +++ b/src/libcore/sync/atomic.rs @@ -927,6 +927,13 @@ impl AtomicPtr { } } +#[cfg(target_has_atomic = "8")] +#[stable(feature = "atomic_from", since = "1.23.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 { -- cgit 1.4.1-3-g733a5