Skip to content

Commit 5e3a560

Browse files
committed
Allow converting Box<T: !Sized> -> Pin<Box<T>>
1 parent 48742c6 commit 5e3a560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/boxed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ impl<T> From<T> for Box<T> {
451451
}
452452

453453
#[stable(feature = "pin", since = "1.33.0")]
454-
impl<T> From<Box<T>> for Pin<Box<T>> {
454+
impl<T: ?Sized> From<Box<T>> for Pin<Box<T>> {
455455
/// Converts a `Box<T>` into a `Pin<Box<T>>`
456456
///
457457
/// This conversion does not allocate on the heap and happens in place.

0 commit comments

Comments
 (0)