Generalize impl<T> Clone for Box<T> to unsized types by a1phyr · Pull Request #146381 · rust-lang/rust (original) (raw)
Part of #142518
I had to add a non-default method to CloneToUninit for this to work, but I think this is fine. (I did not do the renaming to CloneUnsized as suggested in #126799 (comment), as this is quite orthogonal)
This also adds some infrastructure that will be helpful for in-place initialization.
Commits can be reviewed independently.