]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #86520 - ssomers:btree_iterators_checked_unwrap, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Thu, 8 Jul 2021 15:06:43 +0000 (15:06 +0000)
committerbors <bors@rust-lang.org>
Thu, 8 Jul 2021 15:06:43 +0000 (15:06 +0000)
commitd0485c7986e0dac6ffd0207aba56467cb9378d85
treeef3dd83981663d931ff5e140bcc582f539f6633f
parent0deb536ff987d7200f5ea35634781e9df9d5b666
parent6a5b6450e7eae2adbc64b901f8356301a2815f92
Auto merge of #86520 - ssomers:btree_iterators_checked_unwrap, r=Mark-Simulacrum

BTree: consistently avoid unwrap_unchecked in iterators

Some iterator support functions named `_unchecked` internally use `unwrap`, some use `unwrap_unchecked`. This PR tries settling on `unwrap`. #86195 went up the same road but travelled way further and doesn't seem successful.

r? `@Mark-Simulacrum`