diff options
| author | bors <bors@rust-lang.org> | 2023-08-16 17:13:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-16 17:13:42 +0000 |
| commit | 6249c70dbb12d12b55f77b64fb0e71ac6c9ec806 (patch) | |
| tree | 710a66754e5fd826789ac3375c34f126f48eb215 /compiler/rustc_codegen_llvm/src | |
| parent | f99343f9eb09a156e49239c80bc0dec0915e121f (diff) | |
| parent | ac0a8ca40d163c6f7a2724ac0c785cf0bf2e9ef4 (diff) | |
| download | rust-6249c70dbb12d12b55f77b64fb0e71ac6c9ec806.tar.gz rust-6249c70dbb12d12b55f77b64fb0e71ac6c9ec806.zip | |
Auto merge of #3027 - ttsugriy:range-map, r=RalfJung
Avoid unnecessary Vec resize. If `size > 0` current implementation will first create an empty vec and then push an element into it, which will cause a resize that can be easily avoided. It's obviously not a big deal, but this also gets rid of `mut` local variable.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
