Pin and PinBox are fundamental.
This commit is contained in:
@@ -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>,
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user