about summary refs log tree commit diff
path: root/src/libcore/sync/atomic.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-10-27 18:00:32 +0000
committerbors <bors@rust-lang.org>2017-10-27 18:00:32 +0000
commitd9f124965551e8fb9403def6a715e13dfd5e9c95 (patch)
treee3b0abf4124b9daa7f63d3dbe1c6f800eba73e2a /src/libcore/sync/atomic.rs
parentbed9a85c40f98ab8f4445b66d285d4108de9ad21 (diff)
parent8ceacf4e1138d382da3c58ef5f8e0791c00fe100 (diff)
Auto merge of #45285 - alexcrichton:update-bootstrap, r=Mark-Simulacrum
Bump to 1.23 and update bootstrap

This commit updates the bootstrap compiler, bumps the version to 1.23, updates
Cargo, updates books, and updates crates.io dependencies
Diffstat (limited to 'src/libcore/sync/atomic.rs')
-rw-r--r--src/libcore/sync/atomic.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index 524f4508c9b..53b056d2b8b 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -243,7 +243,7 @@ impl AtomicBool {
     /// ```
     #[inline]
     #[stable(feature = "rust1", since = "1.0.0")]
-    #[cfg_attr(not(stage0), rustc_const_unstable(feature = "const_atomic_bool_new"))]
+    #[rustc_const_unstable(feature = "const_atomic_bool_new")]
     pub const fn new(v: bool) -> AtomicBool {
         AtomicBool { v: UnsafeCell::new(v as u8) }
     }
@@ -657,7 +657,7 @@ impl<T> AtomicPtr<T> {
     /// ```
     #[inline]
     #[stable(feature = "rust1", since = "1.0.0")]
-    #[cfg_attr(not(stage0), rustc_const_unstable(feature = "const_atomic_ptr_new"))]
+    #[rustc_const_unstable(feature = "const_atomic_ptr_new")]
     pub const fn new(p: *mut T) -> AtomicPtr<T> {
         AtomicPtr { p: UnsafeCell::new(p) }
     }
@@ -992,7 +992,7 @@ macro_rules! atomic_int {
             /// ```
             #[inline]
             #[$stable]
-            #[cfg_attr(not(stage0), $const_unstable)]
+            #[$const_unstable]
             pub const fn new(v: $int_type) -> Self {
                 $atomic_type {v: UnsafeCell::new(v)}
             }