summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorboats <boats@mozilla.com>2018-03-15 16:10:18 -0700
committerboats <boats@mozilla.com>2018-03-15 16:10:18 -0700
commit2f1c24a60d173f323fdbe3c716349a9974134568 (patch)
tree85dc84fc3596e819e45685126161f29baa824e9c /src/liballoc
parente3c5f6958f3fc82858a3674277d620d3ba844350 (diff)
downloadrust-2f1c24a60d173f323fdbe3c716349a9974134568.tar.gz
rust-2f1c24a60d173f323fdbe3c716349a9974134568.zip
CoerceUnsized for PinBox
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index 42903c7bde0..5e5d7b91720 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -989,3 +989,6 @@ impl<T: ?Sized> fmt::Pointer for PinBox<T> {
         fmt::Pointer::fmt(&ptr, f)
     }
 }
+
+#[unstable(feature = "pin", issue = "0")]
+impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<PinBox<U>> for PinBox<T> {}