@@ -238,7 +238,7 @@ impl<'a> Context<'a> {
238
238
}
239
239
/// Returns a reference to the [`LocalWaker`] for the current task.
240
240
#[ inline]
241
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
241
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
242
242
#[ rustc_const_unstable( feature = "const_waker" , issue = "102012" ) ]
243
243
pub const fn local_waker ( & self ) -> & ' a LocalWaker {
244
244
& self . local_waker
@@ -247,7 +247,7 @@ impl<'a> Context<'a> {
247
247
/// otherwise it returns `None`.
248
248
#[ inline]
249
249
#[ rustc_const_unstable( feature = "const_waker" , issue = "102012" ) ]
250
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
250
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
251
251
pub const fn try_waker ( & self ) -> Option < & ' a Waker > {
252
252
self . waker
253
253
}
@@ -282,7 +282,7 @@ impl fmt::Debug for Context<'_> {
282
282
/// assert_eq!(poll, Poll::Ready(20));
283
283
///
284
284
/// ```
285
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
285
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
286
286
#[ derive( Debug ) ]
287
287
pub struct ContextBuilder < ' a > {
288
288
waker : Option < & ' a Waker > ,
@@ -293,7 +293,7 @@ impl<'a> ContextBuilder<'a> {
293
293
/// Create a ContextBuilder from a Waker.
294
294
#[ inline]
295
295
#[ rustc_const_unstable( feature = "const_waker" , issue = "102012" ) ]
296
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
296
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
297
297
pub const fn from_waker ( waker : & ' a Waker ) -> Self {
298
298
// SAFETY: LocalWaker is just Waker without thread safety
299
299
let local_waker = unsafe { transmute ( waker) } ;
@@ -303,7 +303,7 @@ impl<'a> ContextBuilder<'a> {
303
303
/// Create a ContextBuilder from a LocalWaker.
304
304
#[ inline]
305
305
#[ rustc_const_unstable( feature = "const_waker" , issue = "102012" ) ]
306
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
306
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
307
307
pub const fn from_local_waker ( local_waker : & ' a LocalWaker ) -> Self {
308
308
Self { local_waker, waker : None }
309
309
}
@@ -312,22 +312,22 @@ impl<'a> ContextBuilder<'a> {
312
312
313
313
#[ inline]
314
314
#[ rustc_const_unstable( feature = "const_waker" , issue = "102012" ) ]
315
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
315
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
316
316
pub const fn waker ( self , waker : & ' a Waker ) -> Self {
317
317
Self { waker : Some ( waker) , ..self }
318
318
}
319
319
320
320
/// This method is used to set the value for the local waker on `Context`.
321
321
#[ inline]
322
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
322
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
323
323
#[ rustc_const_unstable( feature = "const_waker" , issue = "102012" ) ]
324
324
pub const fn local_waker ( self , local_waker : & ' a LocalWaker ) -> Self {
325
325
Self { local_waker, ..self }
326
326
}
327
327
328
328
/// Builds the `Context`.
329
329
#[ inline]
330
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
330
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
331
331
#[ rustc_const_unstable( feature = "const_waker" , issue = "102012" ) ]
332
332
pub const fn build ( self ) -> Context < ' a > {
333
333
let ContextBuilder { waker, local_waker } = self ;
@@ -370,7 +370,7 @@ impl<'a> ContextBuilder<'a> {
370
370
/// with_waker(async { /* ... */ }, &Waker::noop()).await;
371
371
/// # }
372
372
/// ```
373
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
373
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
374
374
impl < ' a > From < & mut Context < ' a > > for ContextBuilder < ' a > {
375
375
#[ inline]
376
376
fn from ( value : & mut Context < ' a > ) -> Self {
@@ -623,19 +623,19 @@ impl fmt::Debug for Waker {
623
623
/// [`Future::poll()`]: core::future::Future::poll
624
624
/// [`Poll::Pending`]: core::task::Poll::Pending
625
625
/// [`local_waker`]: core::task::Context::local_waker
626
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
626
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
627
627
#[ repr( transparent) ]
628
628
pub struct LocalWaker {
629
629
waker : RawWaker ,
630
630
}
631
631
632
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
632
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
633
633
impl Unpin for LocalWaker { }
634
634
635
635
impl LocalWaker {
636
636
/// Creates a new `LocalWaker` from [`RawWaker`].
637
637
///
638
- /// The behavior of the returned `Waker ` is undefined if the contract defined
638
+ /// The behavior of the returned `LocalWaker ` is undefined if the contract defined
639
639
/// in [`RawWaker`]'s and [`RawWakerVTable`]'s documentation is not upheld.
640
640
/// Therefore this method is unsafe.
641
641
#[ inline]
@@ -651,7 +651,7 @@ impl LocalWaker {
651
651
/// As long as the executor keeps running and the task is not finished, it is
652
652
/// guaranteed that each invocation of [`wake()`](Self::wake) (or
653
653
/// [`wake_by_ref()`](Self::wake_by_ref)) will be followed by at least one
654
- /// [`poll()`] of the task to which this `Waker ` belongs. This makes
654
+ /// [`poll()`] of the task to which this `LocalWaker ` belongs. This makes
655
655
/// it possible to temporarily yield to other tasks while running potentially
656
656
/// unbounded processing loops.
657
657
///
@@ -749,7 +749,7 @@ impl LocalWaker {
749
749
unsafe { ( self . waker . vtable . wake_by_ref ) ( self . waker . data ) }
750
750
}
751
751
}
752
- #[ unstable( feature = "local_waker" , issue = "none " ) ]
752
+ #[ unstable( feature = "local_waker" , issue = "118959 " ) ]
753
753
impl Clone for LocalWaker {
754
754
#[ inline]
755
755
fn clone ( & self ) -> Self {
0 commit comments