]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #55745 - nnethercote:outlives_components-SmallVec, r=matthewjasper
authorPietro Albini <pietro@pietroalbini.org>
Sat, 10 Nov 2018 23:21:12 +0000 (00:21 +0100)
committerGitHub <noreply@github.com>
Sat, 10 Nov 2018 23:21:12 +0000 (00:21 +0100)
commitf0a6e3a583bc19bdb21e4403d7235488d02b883d
tree3d2414e901baafd82055256d5c4c30f87e995cef
parent0e912b2c17aeb865dad2bb01eb8d50aa4a893f97
parent5b2314b3cacf10e79082180c24c79599e63dbaa9
Rollup merge of #55745 - nnethercote:outlives_components-SmallVec, r=matthewjasper

Convert `outlives_components`' return value to a `SmallVec` outparam.

This avoids some allocations, reducing instruction counts by 1% on a
couple of benchmarks.
src/librustc/traits/util.rs
src/librustc/ty/sty.rs