about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKevin Mehall <km@kevinmehall.net>2024-09-02 17:42:50 -0600
committerKevin Mehall <km@kevinmehall.net>2024-09-02 18:51:59 -0600
commit2dc75148ee4ac7e6edfc25911b28b877e1bed0f6 (patch)
treedac8e580b33a8a8484c6b0851c09b1207c83ae43
parent8d3e5fa0ae31a4b00ef7dc8d895e12865af08747 (diff)
downloadrust-2dc75148ee4ac7e6edfc25911b28b877e1bed0f6.tar.gz
rust-2dc75148ee4ac7e6edfc25911b28b877e1bed0f6.zip
Stabilize waker_getters
-rw-r--r--library/core/src/task/wake.rs8
-rw-r--r--library/core/tests/lib.rs1
2 files changed, 4 insertions, 5 deletions
diff --git a/library/core/src/task/wake.rs b/library/core/src/task/wake.rs
index 9baaa274bb0..8dc7e33aed3 100644
--- a/library/core/src/task/wake.rs
+++ b/library/core/src/task/wake.rs
@@ -552,7 +552,7 @@ impl Waker {
     /// Gets the `data` pointer used to create this `Waker`.
     #[inline]
     #[must_use]
-    #[unstable(feature = "waker_getters", issue = "96992")]
+    #[stable(feature = "waker_getters", since = "CURRENT_RUSTC_VERSION")]
     pub fn data(&self) -> *const () {
         self.waker.data
     }
@@ -560,7 +560,7 @@ impl Waker {
     /// Gets the `vtable` pointer used to create this `Waker`.
     #[inline]
     #[must_use]
-    #[unstable(feature = "waker_getters", issue = "96992")]
+    #[stable(feature = "waker_getters", since = "CURRENT_RUSTC_VERSION")]
     pub fn vtable(&self) -> &'static RawWakerVTable {
         self.waker.vtable
     }
@@ -826,7 +826,7 @@ impl LocalWaker {
     /// Gets the `data` pointer used to create this `LocalWaker`.
     #[inline]
     #[must_use]
-    #[unstable(feature = "waker_getters", issue = "96992")]
+    #[unstable(feature = "local_waker", issue = "118959")]
     pub fn data(&self) -> *const () {
         self.waker.data
     }
@@ -834,7 +834,7 @@ impl LocalWaker {
     /// Gets the `vtable` pointer used to create this `LocalWaker`.
     #[inline]
     #[must_use]
-    #[unstable(feature = "waker_getters", issue = "96992")]
+    #[unstable(feature = "local_waker", issue = "118959")]
     pub fn vtable(&self) -> &'static RawWakerVTable {
         self.waker.vtable
     }
diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs
index c205f028dd3..96fc621494f 100644
--- a/library/core/tests/lib.rs
+++ b/library/core/tests/lib.rs
@@ -112,7 +112,6 @@
 #![feature(unsize)]
 #![feature(unsized_tuple_coercion)]
 #![feature(unwrap_infallible)]
-#![feature(waker_getters)]
 // tidy-alphabetical-end
 #![allow(internal_features)]
 #![deny(fuzzy_provenance_casts)]