diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-09 05:08:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-09 05:08:33 +0100 |
| commit | 876f9ffde6f14f34e9d1d3a60540e688558d7780 (patch) | |
| tree | 7811fa1afa1c17cef790324febdc8a0300f2c944 /src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs | |
| parent | 22a13311128fff9462e7fa459f90b9fbb43be191 (diff) | |
| parent | 883d0a7aa541abc900e2b597e847bd3140263df4 (diff) | |
| download | rust-876f9ffde6f14f34e9d1d3a60540e688558d7780.tar.gz rust-876f9ffde6f14f34e9d1d3a60540e688558d7780.zip | |
Rollup merge of #91042 - Kobzol:vec-extend-cleanup, r=nagisa
Use Vec extend instead of repeated pushes on several places
Inspired by https://github.com/rust-lang/rust/pull/90813, I tried to use a simple regex (`for .*in.*\{\n.*push\(.*\);\n\s+}`) to search for more places that would use `Vec::push` in a loop and replace them with `Vec::extend`.
These probably won't have as much perf. impact as the original PR (if any), but it would probably be better to do a perf run to see if there are not any regressions.
Diffstat (limited to 'src/test/ui/iterators/iter-sum-overflow-overflow-checks.rs')
0 files changed, 0 insertions, 0 deletions
