Skip to content

Commit 81d0ece

Browse files
author
boats
committed
Pin and PinBox are fundamental.
1 parent 2f1c24a commit 81d0ece

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/liballoc/boxed.rs

+1
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@ impl<T> Generator for Box<T>
899899

900900
/// A pinned, heap allocated reference.
901901
#[unstable(feature = "pin", issue = "0")]
902+
#[fundamental]
902903
pub struct PinBox<T: ?Sized> {
903904
inner: Box<T>,
904905
}

src/libcore/mem.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,7 @@ pub unsafe fn unreachable() -> ! {
11121112
/// safe to move a value out of a pinned reference unless the type of that
11131113
/// value implements the `Unpin` trait.
11141114
#[unstable(feature = "pin", issue = "0")]
1115+
#[fundamental]
11151116
pub struct Pin<'a, T: ?Sized + 'a> {
11161117
inner: &'a mut T,
11171118
}

0 commit comments

Comments
 (0)