-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Simplify Clone for Box<[T]> #67312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify Clone for Box<[T]> #67312
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
☔ The latest upstream changes (presumably #67540) made this pull request unmergeable. Please resolve the merge conflicts. |
The bespoke `BoxBuilder` was basically a very simple `Vec`. Instead, let's clone to a real `Vec`, with all of its specialization for the task, then convert back to `Box<[T]>`.
06077e7
to
81a6709
Compare
Rebased. |
r? @SimonSapin |
Looks good, thanks! @bors r+ Until something like rust-lang/highfive#241 is added, please consider using https://github.com/rust-lang/highfive/blob/master/highfive/configs/rust-lang/rust.json to find a reviewer. |
📌 Commit 81a6709 has been approved by |
OK, thanks for the link. I knew you were on the libs team and had touched this file relatively recently, but didn't know there was a distinct reviewer list (that you aren't on). Thanks for reviewing anyway! |
Simplify Clone for Box<[T]> The bespoke `BoxBuilder` was basically a very simple `Vec`. Instead, let's clone to a real `Vec`, with all of its specialization for the task, then convert back to `Box<[T]>`.
☀️ Test successful - checks-azure |
The bespoke
BoxBuilder
was basically a very simpleVec
. Instead,let's clone to a real
Vec
, with all of its specialization for thetask, then convert back to
Box<[T]>
.