about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-12-18 12:00:59 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2019-12-18 12:16:19 -0500
commit82184440ecd33e87cd03a8f7c70af2ad95d5400f (patch)
tree1eda0bfec40ffa7bc2d180c8182cfa81912df2dd /src/libcore/sync
parent6a400ee14967a0210c31a6e272d56cbbb2b372dd (diff)
downloadrust-82184440ecd33e87cd03a8f7c70af2ad95d5400f.tar.gz
rust-82184440ecd33e87cd03a8f7c70af2ad95d5400f.zip
Propagate cfg bootstrap
Diffstat (limited to 'src/libcore/sync')
-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 d5b0bc42038..1f09895597a 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -331,7 +331,7 @@ impl AtomicBool {
     /// ```
     #[inline]
     #[stable(feature = "rust1", since = "1.0.0")]
-    #[cfg_attr(not(bootstrap), rustc_const_stable(feature = "const_atomic_new", since = "1.32.0"))]
+    #[rustc_const_stable(feature = "const_atomic_new", since = "1.32.0")]
     pub const fn new(v: bool) -> AtomicBool {
         AtomicBool { v: UnsafeCell::new(v as u8) }
     }
@@ -856,7 +856,7 @@ impl<T> AtomicPtr<T> {
     /// ```
     #[inline]
     #[stable(feature = "rust1", since = "1.0.0")]
-    #[cfg_attr(not(bootstrap), rustc_const_stable(feature = "const_atomic_new", since = "1.32.0"))]
+    #[rustc_const_stable(feature = "const_atomic_new", since = "1.32.0")]
     pub const fn new(p: *mut T) -> AtomicPtr<T> {
         AtomicPtr { p: UnsafeCell::new(p) }
     }
@@ -1261,7 +1261,7 @@ let atomic_forty_two = ", stringify!($atomic_type), "::new(42);
 ```"),
                 #[inline]
                 #[$stable]
-                #[cfg_attr(not(bootstrap), $const_stable)]
+                #[$const_stable]
                 pub const fn new(v: $int_type) -> Self {
                     Self {v: UnsafeCell::new(v)}
                 }