@@ -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
///
@@ -555,8 +555,6 @@ impl Waker {
555
555
/// # Examples
556
556
///
557
557
/// ```
558
- /// #![feature(noop_waker)]
559
- ///
560
558
/// use std::future::Future;
561
559
/// use std::task;
562
560
///
@@ -567,7 +565,8 @@ impl Waker {
567
565
/// ```
568
566
#[ inline]
569
567
#[ must_use]
570
- #[ unstable( feature = "noop_waker" , issue = "98286" ) ]
568
+ #[ stable( feature = "noop_waker" , since = "CURRENT_RUSTC_VERSION" ) ]
569
+ #[ rustc_const_stable( feature = "noop_waker" , since = "CURRENT_RUSTC_VERSION" ) ]
571
570
pub const fn noop ( ) -> & ' static Waker {
572
571
const WAKER : & Waker = & Waker { waker : RawWaker :: NOOP } ;
573
572
WAKER
@@ -850,8 +849,6 @@ impl LocalWaker {
850
849
///
851
850
/// ```
852
851
/// #![feature(local_waker)]
853
- /// #![feature(noop_waker)]
854
- ///
855
852
/// use std::future::Future;
856
853
/// use std::task::{ContextBuilder, LocalWaker, Waker, Poll};
857
854
///
@@ -864,7 +861,7 @@ impl LocalWaker {
864
861
/// ```
865
862
#[ inline]
866
863
#[ must_use]
867
- #[ unstable( feature = "noop_waker " , issue = "98286 " ) ]
864
+ #[ unstable( feature = "local_waker " , issue = "118959 " ) ]
868
865
pub const fn noop ( ) -> & ' static LocalWaker {
869
866
const WAKER : & LocalWaker = & LocalWaker { waker : RawWaker :: NOOP } ;
870
867
WAKER
0 commit comments