]> git.lizzy.rs Git - rust.git/commit
Auto merge of #75163 - canova:map_into_keys_values, r=dtolnay
authorbors <bors@rust-lang.org>
Sat, 8 Aug 2020 18:15:50 +0000 (18:15 +0000)
committerbors <bors@rust-lang.org>
Sat, 8 Aug 2020 18:15:50 +0000 (18:15 +0000)
commit1facd4a77b181ad44b9c9a64f0fd21b6d5180458
tree7a6d23bbe24da2aad5152aeca15d9a3e2c493d16
parent3f091baba4fa656adb4c1a57b64aa831002d801d
parent4cd2637e2bf1016c95a401a4d5cc70406fbacf08
Auto merge of #75163 - canova:map_into_keys_values, r=dtolnay

Implement `into_keys` and `into_values` for associative maps

This PR implements `into_keys` and `into_values` for HashMap and BTreeMap types. They are implemented as unstable, under `map_into_keys_values` feature.
Fixes #55214.
r? @dtolnay
library/alloc/src/collections/btree/map.rs