Stabilize pin_into_inner in 1.39.0
FCP: https://github.com/rust-lang/rust/issues/60245#issuecomment-522258129 Closes #60245
This commit is contained in:
parent
17e73e801a
commit
820aa5b2ef
1 changed files with 2 additions and 2 deletions
|
|
@ -462,7 +462,7 @@ impl<P: Deref<Target: Unpin>> Pin<P> {
|
|||
/// can ignore the pinning invariants when unwrapping it.
|
||||
///
|
||||
/// [`Unpin`]: ../../std/marker/trait.Unpin.html
|
||||
#[unstable(feature = "pin_into_inner", issue = "60245")]
|
||||
#[stable(feature = "pin_into_inner", since = "1.39.0")]
|
||||
#[inline(always)]
|
||||
pub fn into_inner(pin: Pin<P>) -> P {
|
||||
pin.pointer
|
||||
|
|
@ -569,7 +569,7 @@ impl<P: Deref> Pin<P> {
|
|||
///
|
||||
/// [`Unpin`]: ../../std/marker/trait.Unpin.html
|
||||
/// [`Pin::into_inner`]: #method.into_inner
|
||||
#[unstable(feature = "pin_into_inner", issue = "60245")]
|
||||
#[stable(feature = "pin_into_inner", since = "1.39.0")]
|
||||
#[inline(always)]
|
||||
pub unsafe fn into_inner_unchecked(pin: Pin<P>) -> P {
|
||||
pin.pointer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue