diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-09 05:02:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-09 05:02:19 +0100 |
| commit | 793648ae836f80443db143d0aafc3504afdeb2d2 (patch) | |
| tree | 909832ce961ed534d96eb6ec18e6fcad7704a4e7 /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | e6b883c74f49f32cb5d1cbad3457f2b8805a4a38 (diff) | |
| parent | 883d0a7aa541abc900e2b597e847bd3140263df4 (diff) | |
| download | rust-793648ae836f80443db143d0aafc3504afdeb2d2.tar.gz rust-793648ae836f80443db143d0aafc3504afdeb2d2.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 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
