diff options
| author | bors <bors@rust-lang.org> | 2020-11-13 11:49:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-13 11:49:33 +0000 |
| commit | a1f7ca788d28f8df9ccd161137c3429be1ed9d0e (patch) | |
| tree | 4d3f4dc61f814c865a2e52b8eb6addc1de7dc223 /compiler/rustc_codegen_llvm/src | |
| parent | 2c4df6bb343e89c382ae2301505013132af77319 (diff) | |
| parent | f0d0d87a2002dea7365ce2230e2df2ed4786fcbe (diff) | |
| download | rust-a1f7ca788d28f8df9ccd161137c3429be1ed9d0e.tar.gz rust-a1f7ca788d28f8df9ccd161137c3429be1ed9d0e.zip | |
Auto merge of #77990 - bugadani:copies, r=lcnr
Eliminate some temporary vectors This PR changes `get_item_attrs` and `get_item_variances` to return iterator impls instead of vectors. On top of that, this PR replaces some seemingly unnecessary vectors with iterators or SmallVec, and also reserves space where we know (the minimum) number of elements that will be inserted. This change hopes to remove a few heap allocations and unnecessary copies.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
