]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #14196 : chris-morgan/rust/hashmap-mangle, r=cmr
authorbors <bors@rust-lang.org>
Fri, 16 May 2014 00:36:27 +0000 (17:36 -0700)
committerbors <bors@rust-lang.org>
Fri, 16 May 2014 00:36:27 +0000 (17:36 -0700)
This used to be called `mangle` and was removed when the Robin Hood hash map came along, but it is a useful thing to have in certain situations (I just hit it with my Teepee header representation), so I want it back.

The method is renamed to `find_with_or_insert_with`, also with the parameters swapped to make sense—find and then insert, not insert and then find.

/cc @cgaebel


Trivial merge