Skip to content

Commit a3c13bc

Browse files
committed
Stabilize waker_getters
1 parent 0d63418 commit a3c13bc

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

library/core/src/task/wake.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ impl RawWaker {
6363
/// Gets the `data` pointer used to create this `RawWaker`.
6464
#[inline]
6565
#[must_use]
66-
#[unstable(feature = "waker_getters", issue = "96992")]
66+
#[stable(feature = "waker_getters", since = "CURRENT_RUSTC_VERSION")]
6767
pub fn data(&self) -> *const () {
6868
self.data
6969
}
7070

7171
/// Gets the `vtable` pointer used to create this `RawWaker`.
7272
#[inline]
7373
#[must_use]
74-
#[unstable(feature = "waker_getters", issue = "96992")]
74+
#[stable(feature = "waker_getters", since = "CURRENT_RUSTC_VERSION")]
7575
pub fn vtable(&self) -> &'static RawWakerVTable {
7676
self.vtable
7777
}
@@ -568,7 +568,7 @@ impl Waker {
568568
/// Gets a reference to the underlying [`RawWaker`].
569569
#[inline]
570570
#[must_use]
571-
#[unstable(feature = "waker_getters", issue = "96992")]
571+
#[stable(feature = "waker_getters", since = "CURRENT_RUSTC_VERSION")]
572572
pub fn as_raw(&self) -> &RawWaker {
573573
&self.waker
574574
}
@@ -834,7 +834,7 @@ impl LocalWaker {
834834
/// Gets a reference to the underlying [`RawWaker`].
835835
#[inline]
836836
#[must_use]
837-
#[unstable(feature = "waker_getters", issue = "96992")]
837+
#[unstable(feature = "local_waker", issue = "118959")]
838838
pub fn as_raw(&self) -> &RawWaker {
839839
&self.waker
840840
}

library/core/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
#![feature(unsize)]
113113
#![feature(unsized_tuple_coercion)]
114114
#![feature(unwrap_infallible)]
115-
#![feature(waker_getters)]
116115
// tidy-alphabetical-end
117116
#![allow(internal_features)]
118117
#![deny(fuzzy_provenance_casts)]

0 commit comments

Comments
 (0)