]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #51869 - nnethercote:rm-clone_from, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sun, 1 Jul 2018 04:23:29 +0000 (04:23 +0000)
committerbors <bors@rust-lang.org>
Sun, 1 Jul 2018 04:23:29 +0000 (04:23 +0000)
Avoid needless allocations in `liveness_of_locals`.

We don't need to replace the heap-allocated bitset, we can just
overwrite its contents.

This speeds up most NLL benchmarks, the best by 1.5%.

r? @nikomatsakis


Trivial merge