]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #69022 - ljedrz:traits_tweak_vecs, r=petrochenkov
authorDylan DPC <dylan.dpc@gmail.com>
Tue, 11 Feb 2020 15:36:59 +0000 (16:36 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 15:36:59 +0000 (16:36 +0100)
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.

1  2 
src/librustc/traits/select.rs

Simple merge