]> git.lizzy.rs Git - rust.git/commitdiff
Update tracking issue.
authorboats <boats@mozilla.com>
Sun, 18 Mar 2018 22:05:45 +0000 (15:05 -0700)
committerboats <boats@mozilla.com>
Sun, 18 Mar 2018 22:05:45 +0000 (15:05 -0700)
src/liballoc/boxed.rs
src/libcore/marker.rs
src/libcore/mem.rs

index 46d3ccb9de5294e3dc6c464101c92484a96b5829..0e71cc59d947cafcce5caf53b28c1e05a7e060bd 100644 (file)
@@ -898,22 +898,22 @@ fn resume(&mut self) -> GeneratorState<Self::Yield, Self::Return> {
 }
 
 /// A pinned, heap allocated reference.
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 #[fundamental]
 pub struct PinBox<T: ?Sized> {
     inner: Box<T>,
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<T> PinBox<T> {
     /// Allocate memory on the heap, move the data into it and pin it.
-    #[unstable(feature = "pin", issue = "0")]
+    #[unstable(feature = "pin", issue = "49150")]
     pub fn new(data: T) -> PinBox<T> {
         PinBox { inner: Box::new(data) }
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<T: ?Sized> PinBox<T> {
     /// Get a pinned reference to the data in this PinBox.
     pub fn as_pin<'a>(&'a mut self) -> Pin<'a, T> {
@@ -937,21 +937,21 @@ pub unsafe fn unpin(this: PinBox<T>) -> Box<T> {
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<T: ?Sized> From<Box<T>> for PinBox<T> {
     fn from(boxed: Box<T>) -> PinBox<T> {
         PinBox { inner: boxed }
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<T: Unpin + ?Sized> From<PinBox<T>> for Box<T> {
     fn from(pinned: PinBox<T>) -> Box<T> {
         pinned.inner
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<T: ?Sized> Deref for PinBox<T> {
     type Target = T;
 
@@ -960,28 +960,28 @@ fn deref(&self) -> &T {
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<T: Unpin + ?Sized> DerefMut for PinBox<T> {
     fn deref_mut(&mut self) -> &mut T {
         &mut *self.inner
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<T: fmt::Display + ?Sized> fmt::Display for PinBox<T> {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         fmt::Display::fmt(&*self.inner, f)
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<T: fmt::Debug + ?Sized> fmt::Debug for PinBox<T> {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         fmt::Debug::fmt(&*self.inner, f)
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<T: ?Sized> fmt::Pointer for PinBox<T> {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         // It's not possible to extract the inner Uniq directly from the Box,
@@ -991,5 +991,5 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<PinBox<U>> for PinBox<T> {}
index 7b67404db5d968d8d6cf3fe27531b8e756bc69c5..9d7f8abff150c10021aa2188a7e0d10aafd11cd6 100644 (file)
@@ -573,5 +573,5 @@ unsafe impl<'a, T: ?Sized> Freeze for &'a mut T {}
 /// `Pin` pointer.
 ///
 /// This trait is automatically implemented for almost every type.
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 pub unsafe auto trait Unpin {}
index e960b5ae758245a2e253031392340e3868dd9047..b2467c948b4b156506dabb8c771e73736e6569d0 100644 (file)
@@ -1111,24 +1111,24 @@ pub unsafe fn unreachable() -> ! {
 /// A pinned reference is a lot like a mutable reference, except that it is not
 /// safe to move a value out of a pinned reference unless the type of that
 /// value implements the `Unpin` trait.
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 #[fundamental]
 pub struct Pin<'a, T: ?Sized + 'a> {
     inner: &'a mut T,
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<'a, T: ?Sized + Unpin> Pin<'a, T> {
     /// Construct a new `Pin` around a reference to some data of a type that
     /// implements `Unpin`.
-    #[unstable(feature = "pin", issue = "0")]
+    #[unstable(feature = "pin", issue = "49150")]
     pub fn new(reference: &'a mut T) -> Pin<'a, T> {
         Pin { inner: reference }
     }
 }
 
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<'a, T: ?Sized> Pin<'a, T> {
     /// Construct a new `Pin` around a reference to some data of a type that
     /// may or may not implement `Unpin`.
@@ -1136,13 +1136,13 @@ impl<'a, T: ?Sized> Pin<'a, T> {
     /// This constructor is unsafe because we do not know what will happen with
     /// that data after the reference ends. If you cannot guarantee that the
     /// data will never move again, calling this constructor is invalid.
-    #[unstable(feature = "pin", issue = "0")]
+    #[unstable(feature = "pin", issue = "49150")]
     pub unsafe fn new_unchecked(reference: &'a mut T) -> Pin<'a, T> {
         Pin { inner: reference }
     }
 
     /// Borrow a Pin for a shorter lifetime than it already has.
-    #[unstable(feature = "pin", issue = "0")]
+    #[unstable(feature = "pin", issue = "49150")]
     pub fn borrow<'b>(this: &'b mut Pin<'a, T>) -> Pin<'b, T> {
         Pin { inner: this.inner }
     }
@@ -1152,7 +1152,7 @@ pub fn borrow<'b>(this: &'b mut Pin<'a, T>) -> Pin<'b, T> {
     /// This function is unsafe. You must guarantee that you will never move
     /// the data out of the mutable reference you receive when you call this
     /// function.
-    #[unstable(feature = "pin", issue = "0")]
+    #[unstable(feature = "pin", issue = "49150")]
     pub unsafe fn get_mut<'b>(this: &'b mut Pin<'a, T>) -> &'b mut T {
         this.inner
     }
@@ -1166,7 +1166,7 @@ pub unsafe fn get_mut<'b>(this: &'b mut Pin<'a, T>) -> &'b mut T {
     /// will not move so long as the argument value does not move (for example,
     /// because it is one of the fields of that value), and also that you do
     /// not move out of the argument you receive to the interior function.
-    #[unstable(feature = "pin", issue = "0")]
+    #[unstable(feature = "pin", issue = "49150")]
     pub unsafe fn map<'b, U, F>(this: &'b mut Pin<'a, T>, f: F) -> Pin<'b, U> where
         F: FnOnce(&mut T) -> &mut U
     {
@@ -1174,7 +1174,7 @@ pub unsafe fn map<'b, U, F>(this: &'b mut Pin<'a, T>, f: F) -> Pin<'b, U> where
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<'a, T: ?Sized> Deref for Pin<'a, T> {
     type Target = T;
 
@@ -1183,33 +1183,33 @@ fn deref(&self) -> &T {
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<'a, T: ?Sized + Unpin> DerefMut for Pin<'a, T> {
     fn deref_mut(&mut self) -> &mut T {
         self.inner
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<'a, T: fmt::Debug + ?Sized> fmt::Debug for Pin<'a, T> {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         fmt::Debug::fmt(&**self, f)
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<'a, T: fmt::Display + ?Sized> fmt::Display for Pin<'a, T> {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         fmt::Display::fmt(&**self, f)
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<'a, T: ?Sized> fmt::Pointer for Pin<'a, T> {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         fmt::Pointer::fmt(&(&*self.inner as *const T), f)
     }
 }
 
-#[unstable(feature = "pin", issue = "0")]
+#[unstable(feature = "pin", issue = "49150")]
 impl<'a, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Pin<'a, U>> for Pin<'a, T> {}