about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-24 18:13:12 -0500
committerGitHub <noreply@github.com>2017-03-24 18:13:12 -0500
commitdd9e5892f4d5b678fd645807f8fee2770ec15438 (patch)
treeb53e461c36fca2109df84011a29eef0b781952e2 /src/rustllvm/RustWrapper.cpp
parentb561d2b5305998dbaec3ac8b8d4aa9a8c6e3330b (diff)
parenta033f1a8eeb55bdf93749a5d0c4d803bbe0d8dfc (diff)
downloadrust-dd9e5892f4d5b678fd645807f8fee2770ec15438.tar.gz
rust-dd9e5892f4d5b678fd645807f8fee2770ec15438.zip
Rollup merge of #40739 - cuviper:hash-rev-drop, r=arthurprs
Simplify hash table drops

This replaces the `std::collections::hash::table::RevMoveBuckets`
iterator with a simpler `while` loop.  This iterator was only used for
dropping the remaining elements of a `RawTable`, so instead we can just
loop through directly and drop them in place.

This should be functionally equivalent to the former code, but a little
easier to read.  I was hoping it might have some performance benefit
too, but it seems the optimizer was already good enough to see through
the iterator -- the generated code is nearly the same.  Maybe it will
still help if an element type has more complicated drop code.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions