Repoint Waker::from_fn_ptr from feature request issue to tracking issue

This commit is contained in:
David Tolnay
2025-11-03 17:17:14 -08:00
parent 675ba38345
commit 75835fb825
+2 -2
View File
@@ -588,7 +588,7 @@ pub fn vtable(&self) -> &'static RawWakerVTable {
/// Constructs a `Waker` from a function pointer.
#[inline]
#[must_use]
#[unstable(feature = "waker_from_fn_ptr", issue = "146055")]
#[unstable(feature = "waker_from_fn_ptr", issue = "148457")]
pub const fn from_fn_ptr(f: fn()) -> Self {
// SAFETY: Unsafe is used for transmutes, pointer came from `fn()` so it
// is sound to transmute it back to `fn()`.
@@ -905,7 +905,7 @@ pub fn vtable(&self) -> &'static RawWakerVTable {
/// Constructs a `LocalWaker` from a function pointer.
#[inline]
#[must_use]
#[unstable(feature = "waker_from_fn_ptr", issue = "146055")]
#[unstable(feature = "waker_from_fn_ptr", issue = "148457")]
pub const fn from_fn_ptr(f: fn()) -> Self {
// SAFETY: Unsafe is used for transmutes, pointer came from `fn()` so it
// is sound to transmute it back to `fn()`.