]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #68468 - ssomers:btreemap_prefer_middle, r=Mark-Simulacrum
authorDylan DPC <dylan.dpc@gmail.com>
Thu, 30 Jan 2020 00:46:42 +0000 (01:46 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Jan 2020 00:46:42 +0000 (01:46 +0100)
commitf837c730caaf5d7f1d9105e623a64f978dacea70
tree635f66d2edaecab5a34a5f46614696b537d65bf3
parent12c9562486224afb083cbe04d846c3f02cffe8c2
parentba87a50332e2f0e636c97917df7d228ceefde5e4
Rollup merge of #68468 - ssomers:btreemap_prefer_middle, r=Mark-Simulacrum

BTreeMap: tag and explain unsafe internal functions or assert preconditions

#68418 concluded that it's not desirable to tag all internal functions with preconditions as being unsafe. This PR does it to some functions, documents why, and elsewhere enforces the preconditions with asserts.
src/liballoc/collections/btree/map.rs
src/liballoc/collections/btree/node.rs