Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5b0d82f

Browse files
authored
Rollup merge ofrust-lang#127204 - dimpolo:stabilize_atomic_bool_fetch_not, r=jhpratt
Stabilize atomic_bool_fetch_notclosesrust-lang#98485`@rustbot` modify labels: +T-libs-api
2 parentsb184a84 +4385efd commit5b0d82f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎core/src/sync/atomic.rs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,6 @@ impl AtomicBool {
10691069
/// # Examples
10701070
///
10711071
/// ```
1072-
/// #![feature(atomic_bool_fetch_not)]
10731072
/// use std::sync::atomic::{AtomicBool, Ordering};
10741073
///
10751074
/// let foo = AtomicBool::new(true);
@@ -1081,7 +1080,7 @@ impl AtomicBool {
10811080
/// assert_eq!(foo.load(Ordering::SeqCst), true);
10821081
/// ```
10831082
#[inline]
1084-
#[unstable(feature ="atomic_bool_fetch_not",issue ="98485")]
1083+
#[stable(feature ="atomic_bool_fetch_not",since ="CURRENT_RUSTC_VERSION")]
10851084
#[cfg(target_has_atomic ="8")]
10861085
#[cfg_attr(miri, track_caller)]// even without panics, this helps for Miri backtraces
10871086
pubfnfetch_not(&self,order:Ordering) ->bool{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp