Skip to content

Commit dd79127

Browse files
committed
stabilize feature rwlock_downgrade
1 parent 5ca574e commit dd79127

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

library/std/src/sync/poison/rwlock.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,6 @@ impl<'a, T: ?Sized> RwLockWriteGuard<'a, T> {
10841084
/// # Example
10851085
///
10861086
/// ```
1087-
/// #![feature(rwlock_downgrade)]
10881087
/// use std::sync::{Arc, RwLock, RwLockWriteGuard};
10891088
///
10901089
/// // The inner value starts as 0.
@@ -1118,7 +1117,7 @@ impl<'a, T: ?Sized> RwLockWriteGuard<'a, T> {
11181117
/// let final_check = rw.read().unwrap();
11191118
/// assert_eq!(*final_check, 2);
11201119
/// ```
1121-
#[unstable(feature = "rwlock_downgrade", issue = "128203")]
1120+
#[stable(feature = "rwlock_downgrade", since = "CURRENT_RUSTC_VERSION")]
11221121
pub fn downgrade(s: Self) -> RwLockReadGuard<'a, T> {
11231122
let lock = s.lock;
11241123

library/std/tests/sync/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#![feature(once_cell_try)]
55
#![feature(lock_value_accessors)]
66
#![feature(reentrant_lock)]
7-
#![feature(rwlock_downgrade)]
87
#![feature(std_internals)]
98
#![allow(internal_features)]
109

0 commit comments

Comments
 (0)