/// with the same lifetime as the original `Pin`.
#[unstable(feature = "pin", issue = "49150")]
#[inline(always)]
- pub const fn get_ref(this: Pin<&'a T>) -> &'a T {
+ pub fn get_ref(this: Pin<&'a T>) -> &'a T {
this.pointer
}
}
/// Convert this `Pin<&mut T>` into a `Pin<&T>` with the same lifetime.
#[unstable(feature = "pin", issue = "49150")]
#[inline(always)]
- pub const fn into_ref(this: Pin<&'a mut T>) -> Pin<&'a T> {
+ pub fn into_ref(this: Pin<&'a mut T>) -> Pin<&'a T> {
Pin { pointer: this.pointer }
}