about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-02-11 16:36:59 +0100
committerGitHub <noreply@github.com>2020-02-11 16:36:59 +0100
commitd8b4abc4ad3fa2a230692844ccb499d8064f1ca4 (patch)
treee44dd0ab08b515419fff8c3a48145d43bafc49ce /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parentc8c2b2bc547f4fc0e36ced79cd7f64d514cc5329 (diff)
parentb8893df8d344c11880c4aada639727fbfc195792 (diff)
downloadrust-d8b4abc4ad3fa2a230692844ccb499d8064f1ca4.tar.gz
rust-d8b4abc4ad3fa2a230692844ccb499d8064f1ca4.zip
Rollup merge of #69022 - ljedrz:traits_tweak_vecs, r=petrochenkov
traits: preallocate 2 Vecs of known initial size

The 2 preallocations are pretty obvious; both vectors will be as big as or larger than the collections they are created from.

In `WfPredicates::normalize` the change from a functional style improves readability and should be perf-friendly, too.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions