]> git.lizzy.rs Git - rust.git/commit
auto merge of #18770 : pczarn/rust/hash_map-explicit-shrinking, r=Gankro
authorbors <bors@rust-lang.org>
Thu, 4 Dec 2014 01:07:48 +0000 (01:07 +0000)
committerbors <bors@rust-lang.org>
Thu, 4 Dec 2014 01:07:48 +0000 (01:07 +0000)
commit207a5084110d106149f7aba96603abba5850fdcb
tree68f4bbf8f42480ac9d323d8b9c786596ff08f528
parentdaa0745886c2382c37d5d345f4c5b1b8f7b9a387
parentb82624bf205e83555d7764d9f849fbfd30df0083
auto merge of #18770 : pczarn/rust/hash_map-explicit-shrinking, r=Gankro

Part of enforcing capacity-related conventions, for #18424, the collections reform.

Implements `fn shrink_to_fit` for HashMap.
The `reserve` method now takes as an argument the *extra* space to reserve.