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
This commit is contained in:
Jacob Pratt 2024-07-03 03:03:15 -04:00 committed by GitHub
commit 8a33f7e5ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1069,7 +1069,6 @@ pub fn fetch_xor(&self, val: bool, order: Ordering) -> bool {
/// # Examples
///
/// ```
/// #![feature(atomic_bool_fetch_not)]
/// use std::sync::atomic::{AtomicBool, Ordering};
///
/// let foo = AtomicBool::new(true);
@ -1081,7 +1080,7 @@ pub fn fetch_xor(&self, val: bool, order: Ordering) -> bool {
/// 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 {