]> git.lizzy.rs Git - rust.git/blobdiff - src/libcore/pin.rs
reduce list to functions callable in const ctx.
[rust.git] / src / libcore / pin.rs
index 63a433a8b230179e802ede5f8672c9ab537188e2..68de82d294529e5cefa0d3eae3159a00674849f3 100644 (file)
@@ -207,7 +207,7 @@ pub unsafe fn map_unchecked<U, F>(this: Pin<&'a T>, func: F) -> Pin<&'a U> where
     /// 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
     }
 }
@@ -216,7 +216,7 @@ impl<'a, T: ?Sized> Pin<&'a mut T> {
     /// 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 }
     }