Pin and PinBox are fundamental.

This commit is contained in:
boats
2018-03-15 16:16:11 -07:00
parent 2f1c24a60d
commit 81d0ecef2c
2 changed files with 2 additions and 0 deletions

View File

@@ -899,6 +899,7 @@ impl<T> Generator for Box<T>
/// A pinned, heap allocated reference.
#[unstable(feature = "pin", issue = "0")]
#[fundamental]
pub struct PinBox<T: ?Sized> {
inner: Box<T>,
}

View File

@@ -1112,6 +1112,7 @@ pub unsafe fn unreachable() -> ! {
/// 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")]
#[fundamental]
pub struct Pin<'a, T: ?Sized + 'a> {
inner: &'a mut T,
}