]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
Auto merge of #81486 - ssomers:btree_separate_drop, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Fri, 12 Feb 2021 06:34:21 +0000 (06:34 +0000)
committerbors <bors@rust-lang.org>
Fri, 12 Feb 2021 06:34:21 +0000 (06:34 +0000)
commita118ee2c13cc96ceb27bd5030c1cca1052377604
tree0064f78771edee2e67a1982468f23362c85bee7e
parente9920ef7749d11fc71cc32ca4ba055bcfeaab945
parent3045b75c6d5fb5011fd9cc3a4146bb984a037ca4
Auto merge of #81486 - ssomers:btree_separate_drop, r=Mark-Simulacrum

BTreeMap: disentangle Drop implementation from IntoIter

No longer require every `BTreeMap` to dig up its last leaf edge before dying. This speeds up the `clone_` benchmarks by 25% for normal keys and values (far less for huge values).

r? `@Mark-Simulacrum`