diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2024-07-03 03:03:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-03 03:03:15 -0400 |
| commit | 8a33f7e5ba3ea850ce3ae83545b9e70eb0c5ce01 (patch) | |
| tree | 50b8af00aaf1e4102e21fd7c7c65f792d1636689 | |
| parent | 18ec452b247672c3dd179dc6300450a239e0d81f (diff) | |
| parent | 860729ea39bc568aa57ce8cb152647138cfda995 (diff) | |
| download | rust-8a33f7e5ba3ea850ce3ae83545b9e70eb0c5ce01.tar.gz rust-8a33f7e5ba3ea850ce3ae83545b9e70eb0c5ce01.zip | |
Rollup merge of #127204 - dimpolo:stabilize_atomic_bool_fetch_not, r=jhpratt
Stabilize atomic_bool_fetch_not closes #98485 `@rustbot` modify labels: +T-libs-api
| -rw-r--r-- | library/core/src/sync/atomic.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index df108f5e0e4..efc07f38f68 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -1069,7 +1069,6 @@ impl AtomicBool { /// # Examples /// /// ``` - /// #![feature(atomic_bool_fetch_not)] /// use std::sync::atomic::{AtomicBool, Ordering}; /// /// let foo = AtomicBool::new(true); @@ -1081,7 +1080,7 @@ impl AtomicBool { /// assert_eq!(foo.load(Ordering::SeqCst), true); /// ``` #[inline] - #[unstable(feature = "atomic_bool_fetch_not", issue = "98485")] + #[stable(feature = "atomic_bool_fetch_not", since = "CURRENT_RUSTC_VERSION")] #[cfg(target_has_atomic = "8")] #[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub fn fetch_not(&self, order: Ordering) -> bool { |
