Rollup merge of #119804 - tmccombs:stabilize-unpoison, r=cuviper
Stabilize mutex_unpoison feature Closes #96469 `@rustbot` +T-libs-api
This commit is contained in:
commit
f92cde4f9a
2 changed files with 2 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue