about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-09 05:08:33 +0100
committerGitHub <noreply@github.com>2021-12-09 05:08:33 +0100
commit876f9ffde6f14f34e9d1d3a60540e688558d7780 (patch)
tree7811fa1afa1c17cef790324febdc8a0300f2c944 /compiler/rustc_query_impl/src
parent22a13311128fff9462e7fa459f90b9fbb43be191 (diff)
parent883d0a7aa541abc900e2b597e847bd3140263df4 (diff)
downloadrust-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 'compiler/rustc_query_impl/src')
0 files changed, 0 insertions, 0 deletions