diff options
| author | bors <bors@rust-lang.org> | 2020-11-20 23:21:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-20 23:21:34 +0000 |
| commit | 432d116a5c2565774bae4c42fcacab8b685608b5 (patch) | |
| tree | 9e5d7895519a810dc9363197d50e093c8cd63cc2 /compiler/rustc_interface/src | |
| parent | 593fe977a77ad5a7aec23c6cb0f86a3470221670 (diff) | |
| parent | e93a4637c0858725a0d7fdebeecf49bd97add724 (diff) | |
| download | rust-432d116a5c2565774bae4c42fcacab8b685608b5.tar.gz rust-432d116a5c2565774bae4c42fcacab8b685608b5.zip | |
Auto merge of #78569 - bugadani:arena-spec, r=Mark-Simulacrum
Arena: use specialization to avoid copying data In several cases, a `Vec` or `SmallVec` is passed to `Arena::alloc_from_iter` directly. This PR makes sure those cases don't copy their data unnecessarily, by specializing the `alloc_from_iter` implementation.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
