about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorWim Looman <wim@nemo157.com>2019-01-03 21:03:29 +0100
committerWim Looman <wim@nemo157.com>2019-01-03 21:03:29 +0100
commit5e3a5602994287cd3ea5feb1e23af9043b63abdf (patch)
treeafe50a8559fc8ff98ce888c36d17a49f32bd6611 /src/liballoc
parent48742c68d9e53fba6b48c211140db595fbaa491e (diff)
downloadrust-5e3a5602994287cd3ea5feb1e23af9043b63abdf.tar.gz
rust-5e3a5602994287cd3ea5feb1e23af9043b63abdf.zip
Allow converting Box<T: !Sized> -> Pin<Box<T>>
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index fbd0b948b82..80e259685ab 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -451,7 +451,7 @@ impl<T> From<T> for Box<T> {
 }
 
 #[stable(feature = "pin", since = "1.33.0")]
-impl<T> From<Box<T>> for Pin<Box<T>> {
+impl<T: ?Sized> From<Box<T>> for Pin<Box<T>> {
     /// Converts a `Box<T>` into a `Pin<Box<T>>`
     ///
     /// This conversion does not allocate on the heap and happens in place.