Skip to content

Commit

Permalink
Add feature gate #![atomic_bool_fetch_not]
Browse files Browse the repository at this point in the history
  • Loading branch information
leocth committed Jun 25, 2022
1 parent dcfe92e commit 7d5f236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ impl AtomicBool {
/// assert_eq!(foo.load(Ordering::SeqCst), true);
/// ```
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
#[unstable(feature = "atomic_bool_fetch_not", issue = "98485")]
#[cfg(target_has_atomic = "8")]
pub fn fetch_not(&self, order: Ordering) -> bool {
self.fetch_xor(true, order)
Expand Down

0 comments on commit 7d5f236

Please sign in to comment.