Skip to content

Commit

Permalink
Stabilize atomic_fetch_update methods on AtomicBool and AtomicPtr.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Apr 11, 2021
1 parent 28b948f commit d331e5e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions library/core/src/sync/atomic.rs
Expand Up @@ -839,7 +839,6 @@ impl AtomicBool {
/// # Examples
///
/// ```rust
/// #![feature(atomic_fetch_update)]
/// use std::sync::atomic::{AtomicBool, Ordering};
///
/// let x = AtomicBool::new(false);
Expand All @@ -849,7 +848,7 @@ impl AtomicBool {
/// assert_eq!(x.load(Ordering::SeqCst), false);
/// ```
#[inline]
#[unstable(feature = "atomic_fetch_update", reason = "recently added", issue = "78639")]
#[stable(feature = "atomic_fetch_update", since = "1.53.0")]
#[cfg(target_has_atomic = "8")]
pub fn fetch_update<F>(
&self,
Expand Down Expand Up @@ -1227,7 +1226,6 @@ impl<T> AtomicPtr<T> {
/// # Examples
///
/// ```rust
/// #![feature(atomic_fetch_update)]
/// use std::sync::atomic::{AtomicPtr, Ordering};
///
/// let ptr: *mut _ = &mut 5;
Expand All @@ -1246,7 +1244,7 @@ impl<T> AtomicPtr<T> {
/// assert_eq!(some_ptr.load(Ordering::SeqCst), new);
/// ```
#[inline]
#[unstable(feature = "atomic_fetch_update", reason = "recently added", issue = "78639")]
#[stable(feature = "atomic_fetch_update", since = "1.53.0")]
#[cfg(target_has_atomic = "ptr")]
pub fn fetch_update<F>(
&self,
Expand Down

0 comments on commit d331e5e

Please sign in to comment.