]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #87343 - steffahn:fix_unsound_zip_optimization_only_regression_fix...
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 22 Jul 2021 11:39:24 +0000 (13:39 +0200)
committerGitHub <noreply@github.com>
Thu, 22 Jul 2021 11:39:24 +0000 (13:39 +0200)
commitaece3df81e9ebd8bab3701e12bdb67b68c03564b
tree88e58ffd03a8620e9c1b11b4b7c817b119c4ddce
parent90d6d3327d7d40f1f0c8e524c5e40f658070c90f
parent1b66a799c7ef707d2cd4b325b654e69bf536c30f
Rollup merge of #87343 - steffahn:fix_unsound_zip_optimization_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 #86222 (merged as part of #86225), a reduced version of #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 #87136. In case that #85874 gets merged quickly (within a week), this PR would be unnecessary.

r? `@cuviper`