mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
7907345e58
BTreeMap: bring back the key slice for immutable lookup Pave the way for binary search, by reverting a bit of #73971, which banned `keys` for misbehaving while it was defined for every `BorrowType`. Adding some `debug_assert`s along the way. r? `@Mark-Simulacrum`