-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[beta] Remove unsound TrustedRandomAccess implementations #87136
Conversation
Removes the implementations that depend on the user-definable trait `Copy`. Beta backport: Does not modify `vec::IntoIter`. (cherry picked from commit 28ea358)
r? @dtolnay (rust-highfive has picked a reviewer for you, use r? to override) |
|
@bors r+ p=1 Could you file this PR (or a similar one) against 1.55 (master) as well? I would like to stop backporting fixes to this bug and instead have the "true" fix revert or otherwise work atop these commits. |
📌 Commit b1e90f9 has been approved by |
@bors rollup=never |
@steffahn as the true author from #85874, would you be able to do that? |
@cuviper Sure, I'll make a PR for master and resolve merge conflicts after it's merged. I suggested that myself, too, in order to avoid the repeated need for beta backport. Seems like we may indeed not make it into 1.55 with the full #85874 given the approaching deadline and review being slow. There's no conflict with #85874, that one removes the impls in question, too (and leaves adding them back as future work). I'll create the PR tomorrow. |
Thanks! Feel free to tag me as the reviewer on that. |
☀️ Test successful - checks-actions |
…on_only_regression_fix, r=cuviper Regression fix to avoid further beta backports: Remove unsound TrustedRandomAccess implementations Removes the implementations that depend on the user-definable trait `Copy`. Only fix regressions to ensure merge in 1.55: Does not modify `vec::IntoIter`. <hr> This PR applies the beta-`1.53` backport rust-lang#86222 (merged as part of rust-lang#86225), a reduced version of rust-lang#85874 that only fixes regressions, to `master` in order to avoid the need for further backports from `1.55` onwards. Beta-`1.54` backport already happened with rust-lang#87136. In case that rust-lang#85874 gets merged quickly (within a week), this PR would be unnecessary. r? `@cuviper`
This re-applies #86222 for 1.54, as the larger fixes in #85874 are still in progress.