]> git.lizzy.rs Git - rust.git/commitdiff
Add feature gate `#![atomic_bool_fetch_not]`
authorleocth <leocth31@gmail.com>
Sat, 25 Jun 2022 10:18:58 +0000 (18:18 +0800)
committerleocth <leocth31@gmail.com>
Sat, 25 Jun 2022 10:31:01 +0000 (18:31 +0800)
library/core/src/sync/atomic.rs

index afc4eda49abd5d73c4a5ba2b7ae59422172edf0d..92afdab299948a2cea0b1ac54725f7d97eb6f430 100644 (file)
@@ -883,7 +883,7 @@ pub fn fetch_xor(&self, val: bool, order: Ordering) -> bool {
     /// 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)