mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 18:34:08 +00:00
Add tracking issue number for mutex_unpoison
This commit is contained in:
parent
fc38388bc1
commit
f7ac8e7aef
@ -392,7 +392,7 @@ impl<T: ?Sized> Mutex<T> {
|
||||
/// assert_eq!(mutex.is_poisoned(), false);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[unstable(feature = "mutex_unpoison", issue = "none")]
|
||||
#[unstable(feature = "mutex_unpoison", issue = "96469")]
|
||||
pub fn clear_poison(guard: &MutexGuard<'_, T>) {
|
||||
guard.lock.poison.clear();
|
||||
}
|
||||
|
@ -395,7 +395,7 @@ impl<T: ?Sized> RwLock<T> {
|
||||
/// assert_eq!(lock.is_poisoned(), false);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[unstable(feature = "mutex_unpoison", issue = "none")]
|
||||
#[unstable(feature = "mutex_unpoison", issue = "96469")]
|
||||
pub fn clear_poison(guard: &RwLockWriteGuard<'_, T>) {
|
||||
guard.lock.poison.clear();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user