File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -174,8 +174,6 @@ impl<T> OnceLock<T> {
174
174
///
175
175
/// Waiting for a computation on another thread to finish:
176
176
/// ```rust
177
- /// #![feature(once_wait)]
178
- ///
179
177
/// use std::thread;
180
178
/// use std::sync::OnceLock;
181
179
///
@@ -189,7 +187,7 @@ impl<T> OnceLock<T> {
189
187
/// })
190
188
/// ```
191
189
#[ inline]
192
- #[ unstable ( feature = "once_wait" , issue = "127527 " ) ]
190
+ #[ stable ( feature = "once_wait" , since = "CURRENT_RUSTC_VERSION " ) ]
193
191
pub fn wait ( & self ) -> & T {
194
192
self . once . wait_force ( ) ;
195
193
Original file line number Diff line number Diff line change @@ -269,8 +269,6 @@ impl Once {
269
269
/// # Example
270
270
///
271
271
/// ```rust
272
- /// #![feature(once_wait)]
273
- ///
274
272
/// use std::sync::Once;
275
273
/// use std::thread;
276
274
///
@@ -289,7 +287,7 @@ impl Once {
289
287
/// If this [`Once`] has been poisoned because an initialization closure has
290
288
/// panicked, this method will also panic. Use [`wait_force`](Self::wait_force)
291
289
/// if this behavior is not desired.
292
- #[ unstable ( feature = "once_wait" , issue = "127527 " ) ]
290
+ #[ stable ( feature = "once_wait" , since = "CURRENT_RUSTC_VERSION " ) ]
293
291
pub fn wait ( & self ) {
294
292
if !self . inner . is_completed ( ) {
295
293
self . inner . wait ( false ) ;
@@ -298,7 +296,7 @@ impl Once {
298
296
299
297
/// Blocks the current thread until initialization has completed, ignoring
300
298
/// poisoning.
301
- #[ unstable ( feature = "once_wait" , issue = "127527 " ) ]
299
+ #[ stable ( feature = "once_wait" , since = "CURRENT_RUSTC_VERSION " ) ]
302
300
pub fn wait_force ( & self ) {
303
301
if !self . inner . is_completed ( ) {
304
302
self . inner . wait ( true ) ;
You can’t perform that action at this time.
0 commit comments