@@ -60,7 +60,8 @@ impl RawWaker {
60
60
RawWaker { data, vtable }
61
61
}
62
62
63
- #[ unstable( feature = "noop_waker" , issue = "98286" ) ]
63
+ #[ stable( feature = "noop_waker" , since = "CURRENT_RUSTC_VERSION" ) ]
64
+ #[ rustc_const_stable( feature = "noop_waker" , since = "CURRENT_RUSTC_VERSION" ) ]
64
65
const NOOP : RawWaker = {
65
66
const VTABLE : RawWakerVTable = RawWakerVTable :: new (
66
67
// Cloning just returns a new no-op raw waker
@@ -283,7 +284,6 @@ impl fmt::Debug for Context<'_> {
283
284
/// # Examples
284
285
/// ```
285
286
/// #![feature(local_waker)]
286
- /// #![feature(noop_waker)]
287
287
/// use std::task::{ContextBuilder, LocalWaker, Waker, Poll};
288
288
/// use std::future::Future;
289
289
///
@@ -557,8 +557,6 @@ impl Waker {
557
557
/// # Examples
558
558
///
559
559
/// ```
560
- /// #![feature(noop_waker)]
561
- ///
562
560
/// use std::future::Future;
563
561
/// use std::task;
564
562
///
@@ -569,7 +567,8 @@ impl Waker {
569
567
/// ```
570
568
#[ inline]
571
569
#[ must_use]
572
- #[ unstable( feature = "noop_waker" , issue = "98286" ) ]
570
+ #[ stable( feature = "noop_waker" , since = "CURRENT_RUSTC_VERSION" ) ]
571
+ #[ rustc_const_stable( feature = "noop_waker" , since = "CURRENT_RUSTC_VERSION" ) ]
573
572
pub const fn noop ( ) -> & ' static Waker {
574
573
const WAKER : & Waker = & Waker { waker : RawWaker :: NOOP } ;
575
574
WAKER
@@ -852,8 +851,6 @@ impl LocalWaker {
852
851
///
853
852
/// ```
854
853
/// #![feature(local_waker)]
855
- /// #![feature(noop_waker)]
856
- ///
857
854
/// use std::future::Future;
858
855
/// use std::task::{ContextBuilder, LocalWaker, Waker, Poll};
859
856
///
@@ -866,7 +863,7 @@ impl LocalWaker {
866
863
/// ```
867
864
#[ inline]
868
865
#[ must_use]
869
- #[ unstable( feature = "noop_waker " , issue = "98286 " ) ]
866
+ #[ unstable( feature = "local_waker " , issue = "118959 " ) ]
870
867
pub const fn noop ( ) -> & ' static LocalWaker {
871
868
const WAKER : & LocalWaker = & LocalWaker { waker : RawWaker :: NOOP } ;
872
869
WAKER
0 commit comments