mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
Repoint Waker::from_fn_ptr from feature request issue to tracking issue
This commit is contained in:
@@ -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()`.
|
||||
|
||||
Reference in New Issue
Block a user