mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Stabilize waker_getters
This commit is contained in:
parent
8d3e5fa0ae
commit
2dc75148ee
@ -552,7 +552,7 @@ impl Waker {
|
|||||||
/// Gets the `data` pointer used to create this `Waker`.
|
/// Gets the `data` pointer used to create this `Waker`.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[unstable(feature = "waker_getters", issue = "96992")]
|
#[stable(feature = "waker_getters", since = "CURRENT_RUSTC_VERSION")]
|
||||||
pub fn data(&self) -> *const () {
|
pub fn data(&self) -> *const () {
|
||||||
self.waker.data
|
self.waker.data
|
||||||
}
|
}
|
||||||
@ -560,7 +560,7 @@ impl Waker {
|
|||||||
/// Gets the `vtable` pointer used to create this `Waker`.
|
/// Gets the `vtable` pointer used to create this `Waker`.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[unstable(feature = "waker_getters", issue = "96992")]
|
#[stable(feature = "waker_getters", since = "CURRENT_RUSTC_VERSION")]
|
||||||
pub fn vtable(&self) -> &'static RawWakerVTable {
|
pub fn vtable(&self) -> &'static RawWakerVTable {
|
||||||
self.waker.vtable
|
self.waker.vtable
|
||||||
}
|
}
|
||||||
@ -826,7 +826,7 @@ impl LocalWaker {
|
|||||||
/// Gets the `data` pointer used to create this `LocalWaker`.
|
/// Gets the `data` pointer used to create this `LocalWaker`.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[unstable(feature = "waker_getters", issue = "96992")]
|
#[unstable(feature = "local_waker", issue = "118959")]
|
||||||
pub fn data(&self) -> *const () {
|
pub fn data(&self) -> *const () {
|
||||||
self.waker.data
|
self.waker.data
|
||||||
}
|
}
|
||||||
@ -834,7 +834,7 @@ impl LocalWaker {
|
|||||||
/// Gets the `vtable` pointer used to create this `LocalWaker`.
|
/// Gets the `vtable` pointer used to create this `LocalWaker`.
|
||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[unstable(feature = "waker_getters", issue = "96992")]
|
#[unstable(feature = "local_waker", issue = "118959")]
|
||||||
pub fn vtable(&self) -> &'static RawWakerVTable {
|
pub fn vtable(&self) -> &'static RawWakerVTable {
|
||||||
self.waker.vtable
|
self.waker.vtable
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,6 @@
|
|||||||
#![feature(unsize)]
|
#![feature(unsize)]
|
||||||
#![feature(unsized_tuple_coercion)]
|
#![feature(unsized_tuple_coercion)]
|
||||||
#![feature(unwrap_infallible)]
|
#![feature(unwrap_infallible)]
|
||||||
#![feature(waker_getters)]
|
|
||||||
// tidy-alphabetical-end
|
// tidy-alphabetical-end
|
||||||
#![allow(internal_features)]
|
#![allow(internal_features)]
|
||||||
#![deny(fuzzy_provenance_casts)]
|
#![deny(fuzzy_provenance_casts)]
|
||||||
|
Loading…
Reference in New Issue
Block a user