Pin and PinBox are fundamental.
This commit is contained in:
parent
2f1c24a60d
commit
81d0ecef2c
2 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue