about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThayne McCombs <astrothayne@gmail.com>2024-01-10 02:34:34 -0700
committerThayne McCombs <astrothayne@gmail.com>2024-01-10 02:34:34 -0700
commit1ed855dedfb89a9e3f8b7f0bc3a57958069759bf (patch)
tree76d46819b8db56f6e5b8abd77f8ea2c981138f4b
parente9271846294c4ee5bd7706df68180320c0b5ff20 (diff)
downloadrust-1ed855dedfb89a9e3f8b7f0bc3a57958069759bf.tar.gz
rust-1ed855dedfb89a9e3f8b7f0bc3a57958069759bf.zip
Stabilize mutex_unpoison feature
Closes #96469

@rustbot +T-libs-api
-rw-r--r--library/std/src/sync/mutex.rs4
-rw-r--r--library/std/src/sync/rwlock.rs4
2 files changed, 2 insertions, 6 deletions
diff --git a/library/std/src/sync/mutex.rs b/library/std/src/sync/mutex.rs
index 0c001d7c258..184c406e326 100644
--- a/library/std/src/sync/mutex.rs
+++ b/library/std/src/sync/mutex.rs
@@ -383,8 +383,6 @@ impl<T: ?Sized> Mutex<T> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(mutex_unpoison)]
-    ///
     /// use std::sync::{Arc, Mutex};
     /// use std::thread;
     ///
@@ -406,7 +404,7 @@ impl<T: ?Sized> Mutex<T> {
     /// assert_eq!(*x, 1);
     /// ```
     #[inline]
-    #[unstable(feature = "mutex_unpoison", issue = "96469")]
+    #[stable(feature = "mutex_unpoison", since = "CURRENT_RUSTC_VERSION")]
     pub fn clear_poison(&self) {
         self.poison.clear();
     }
diff --git a/library/std/src/sync/rwlock.rs b/library/std/src/sync/rwlock.rs
index 5d8967bfbe6..23d3dd0707a 100644
--- a/library/std/src/sync/rwlock.rs
+++ b/library/std/src/sync/rwlock.rs
@@ -387,8 +387,6 @@ impl<T: ?Sized> RwLock<T> {
     /// # Examples
     ///
     /// ```
-    /// #![feature(mutex_unpoison)]
-    ///
     /// use std::sync::{Arc, RwLock};
     /// use std::thread;
     ///
@@ -410,7 +408,7 @@ impl<T: ?Sized> RwLock<T> {
     /// assert_eq!(*guard, 1);
     /// ```
     #[inline]
-    #[unstable(feature = "mutex_unpoison", issue = "96469")]
+    #[stable(feature = "mutex_unpoison", since = "CURRENT_RUSTC_VERSION")]
     pub fn clear_poison(&self) {
         self.poison.clear();
     }