diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 4f9dc61ce19..71b53cc88e5 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -845,3 +845,6 @@ impl fmt::Pointer for PinBox { #[unstable(feature = "pin", issue = "49150")] impl, U: ?Sized> CoerceUnsized> for PinBox {} + +#[unstable(feature = "pin", issue = "49150")] +unsafe impl Unpin for PinBox {} diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index b2467c948b4..e3f08926610 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -1213,3 +1213,6 @@ impl<'a, T: ?Sized> fmt::Pointer for Pin<'a, T> { #[unstable(feature = "pin", issue = "49150")] impl<'a, T: ?Sized + Unsize, U: ?Sized> CoerceUnsized> for Pin<'a, T> {} + +#[unstable(feature = "pin", issue = "49150")] +unsafe impl<'a, T: ?Sized> Unpin for Pin<'a, T> {}