Rollup merge of #49621 - Nemo157:impl-unpin-for-pin, r=withoutboats

This commit is contained in:
Alex Crichton 2018-04-05 11:50:12 -07:00
commit 83669ecc1f
2 changed files with 6 additions and 0 deletions

View File

@ -845,3 +845,6 @@ impl<T: ?Sized> fmt::Pointer for PinBox<T> {
#[unstable(feature = "pin", issue = "49150")]
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<PinBox<U>> for PinBox<T> {}
#[unstable(feature = "pin", issue = "49150")]
unsafe impl<T: ?Sized> Unpin for PinBox<T> {}

View File

@ -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>, U: ?Sized> CoerceUnsized<Pin<'a, U>> for Pin<'a, T> {}
#[unstable(feature = "pin", issue = "49150")]
unsafe impl<'a, T: ?Sized> Unpin for Pin<'a, T> {}