]> git.lizzy.rs Git - rust.git/commit
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)
commit632d48640113ab75833f5b2ae613532b8209c9b2
tree1b72e74a3d64c55ca8642d91d04a5d5b46a3775d
parent0481d628b826104085c5df267cf6089a89fcd17b
parentff98afebf47da86cce6e7c033634c36c40bf63b6
auto merge of #14196 : chris-morgan/rust/hashmap-mangle, r=cmr

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