diff options
| author | boats <boats@mozilla.com> | 2018-03-18 15:05:45 -0700 |
|---|---|---|
| committer | boats <boats@mozilla.com> | 2018-03-18 15:05:45 -0700 |
| commit | 2797aaca77fe5c454f3a3ada84b06912b2f74b9f (patch) | |
| tree | fe3ecb12bc107d4c78fa334f464d198de3875878 /src/liballoc | |
| parent | 81d0ecef2c4ba5ebb36a72f76adbce1b229fb856 (diff) | |
| download | rust-2797aaca77fe5c454f3a3ada84b06912b2f74b9f.tar.gz rust-2797aaca77fe5c454f3a3ada84b06912b2f74b9f.zip | |
Update tracking issue.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 46d3ccb9de5..0e71cc59d94 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -898,22 +898,22 @@ impl<T> Generator for Box<T> } /// 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 @@ impl<T: ?Sized> PinBox<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 @@ impl<T: ?Sized> Deref for PinBox<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 @@ impl<T: ?Sized> fmt::Pointer for PinBox<T> { } } -#[unstable(feature = "pin", issue = "0")] +#[unstable(feature = "pin", issue = "49150")] impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<PinBox<U>> for PinBox<T> {} |
