Skip to content

Commit 2c56db4

Browse files
committed
Auto merge of #84085 - m-ou-se:stabilize-atomic-fetch-update, r=kennytm
Stabilize atomic_fetch_update methods on AtomicBool and AtomicPtr. FCP completed here: #78639 (comment)
2 parents e41f378 + d331e5e commit 2c56db4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

library/core/src/sync/atomic.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,6 @@ impl AtomicBool {
839839
/// # Examples
840840
///
841841
/// ```rust
842-
/// #![feature(atomic_fetch_update)]
843842
/// use std::sync::atomic::{AtomicBool, Ordering};
844843
///
845844
/// let x = AtomicBool::new(false);
@@ -849,7 +848,7 @@ impl AtomicBool {
849848
/// assert_eq!(x.load(Ordering::SeqCst), false);
850849
/// ```
851850
#[inline]
852-
#[unstable(feature = "atomic_fetch_update", reason = "recently added", issue = "78639")]
851+
#[stable(feature = "atomic_fetch_update", since = "1.53.0")]
853852
#[cfg(target_has_atomic = "8")]
854853
pub fn fetch_update<F>(
855854
&self,
@@ -1227,7 +1226,6 @@ impl<T> AtomicPtr<T> {
12271226
/// # Examples
12281227
///
12291228
/// ```rust
1230-
/// #![feature(atomic_fetch_update)]
12311229
/// use std::sync::atomic::{AtomicPtr, Ordering};
12321230
///
12331231
/// let ptr: *mut _ = &mut 5;
@@ -1246,7 +1244,7 @@ impl<T> AtomicPtr<T> {
12461244
/// assert_eq!(some_ptr.load(Ordering::SeqCst), new);
12471245
/// ```
12481246
#[inline]
1249-
#[unstable(feature = "atomic_fetch_update", reason = "recently added", issue = "78639")]
1247+
#[stable(feature = "atomic_fetch_update", since = "1.53.0")]
12501248
#[cfg(target_has_atomic = "ptr")]
12511249
pub fn fetch_update<F>(
12521250
&self,

0 commit comments

Comments
 (0)