about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-20 23:21:34 +0000
committerbors <bors@rust-lang.org>2020-11-20 23:21:34 +0000
commit432d116a5c2565774bae4c42fcacab8b685608b5 (patch)
tree9e5d7895519a810dc9363197d50e093c8cd63cc2 /compiler/rustc_interface/src
parent593fe977a77ad5a7aec23c6cb0f86a3470221670 (diff)
parente93a4637c0858725a0d7fdebeecf49bd97add724 (diff)
downloadrust-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