Skip to content

Commit

Permalink
Stabilize waker_getters
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmehall committed Aug 30, 2024
1 parent 0d63418 commit a3c13bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions library/core/src/task/wake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ impl RawWaker {
/// Gets the `data` pointer used to create this `RawWaker`.
#[inline]
#[must_use]
#[unstable(feature = "waker_getters", issue = "96992")]
#[stable(feature = "waker_getters", since = "CURRENT_RUSTC_VERSION")]
pub fn data(&self) -> *const () {
self.data
}

/// Gets the `vtable` pointer used to create this `RawWaker`.
#[inline]
#[must_use]
#[unstable(feature = "waker_getters", issue = "96992")]
#[stable(feature = "waker_getters", since = "CURRENT_RUSTC_VERSION")]
pub fn vtable(&self) -> &'static RawWakerVTable {
self.vtable
}
Expand Down Expand Up @@ -568,7 +568,7 @@ impl Waker {
/// Gets a reference to the underlying [`RawWaker`].
#[inline]
#[must_use]
#[unstable(feature = "waker_getters", issue = "96992")]
#[stable(feature = "waker_getters", since = "CURRENT_RUSTC_VERSION")]
pub fn as_raw(&self) -> &RawWaker {
&self.waker
}
Expand Down Expand Up @@ -834,7 +834,7 @@ impl LocalWaker {
/// Gets a reference to the underlying [`RawWaker`].
#[inline]
#[must_use]
#[unstable(feature = "waker_getters", issue = "96992")]
#[unstable(feature = "local_waker", issue = "118959")]
pub fn as_raw(&self) -> &RawWaker {
&self.waker
}
Expand Down
1 change: 0 additions & 1 deletion library/core/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit a3c13bc

Please sign in to comment.