about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-02-27 16:58:12 -0700
committerMark Rousskov <mark.simulacrum@gmail.com>2019-03-02 09:05:34 -0700
commit2870015b7b7a52a23db0b68fde8b830706061fd0 (patch)
tree081ff03ea2e2aa9c985be3d950919ca96991c21d /src/libcore/sync
parent9cfed5da12bf65212eb9a4ae9141c2f39f995381 (diff)
downloadrust-2870015b7b7a52a23db0b68fde8b830706061fd0.tar.gz
rust-2870015b7b7a52a23db0b68fde8b830706061fd0.zip
Bootstrap compiler update for 1.35 release
Diffstat (limited to 'src/libcore/sync')
-rw-r--r--src/libcore/sync/atomic.rs16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs
index d0ee5fa9e6b..04a49d25301 100644
--- a/src/libcore/sync/atomic.rs
+++ b/src/libcore/sync/atomic.rs
@@ -290,15 +290,11 @@ pub enum Ordering {
 /// [`AtomicBool`]: struct.AtomicBool.html
 #[cfg(target_has_atomic = "8")]
 #[stable(feature = "rust1", since = "1.0.0")]
-#[cfg_attr(not(stage0), rustc_deprecated(
+#[rustc_deprecated(
     since = "1.34.0",
     reason = "the `new` function is now preferred",
     suggestion = "AtomicBool::new(false)",
-))]
-#[cfg_attr(stage0, rustc_deprecated(
-    since = "1.34.0",
-    reason = "the `new` function is now preferred",
-))]
+)]
 pub const ATOMIC_BOOL_INIT: AtomicBool = AtomicBool::new(false);
 
 #[cfg(target_has_atomic = "8")]
@@ -1158,15 +1154,11 @@ macro_rules! atomic_int {
 
         /// An atomic integer initialized to `0`.
         #[$stable_init_const]
-        #[cfg_attr(stage0, rustc_deprecated(
-            since = "1.34.0",
-            reason = "the `new` function is now preferred",
-        ))]
-        #[cfg_attr(not(stage0), rustc_deprecated(
+        #[rustc_deprecated(
             since = "1.34.0",
             reason = "the `new` function is now preferred",
             suggestion = $atomic_new,
-        ))]
+        )]
         pub const $atomic_init: $atomic_type = $atomic_type::new(0);
 
         #[$stable]