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:
commit
8a33f7e5ba
@ -1069,7 +1069,6 @@ pub fn fetch_xor(&self, val: bool, order: Ordering) -> bool {
|
|||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(atomic_bool_fetch_not)]
|
|
||||||
/// use std::sync::atomic::{AtomicBool, Ordering};
|
/// use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
///
|
///
|
||||||
/// let foo = AtomicBool::new(true);
|
/// 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);
|
/// assert_eq!(foo.load(Ordering::SeqCst), true);
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[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(target_has_atomic = "8")]
|
||||||
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
|
#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces
|
||||||
pub fn fetch_not(&self, order: Ordering) -> bool {
|
pub fn fetch_not(&self, order: Ordering) -> bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user