rust/library/alloc
bors a0925fba74 Auto merge of #76790 - ssomers:btree_slice_slasher_returns, r=Mark-Simulacrum
BTreeMap: avoid slices even more

Epilogue to #73971: it seems the compiler is unable to realize that creating a slice and `get_unchecked`-ing one element is a simple fetch. So try to spell it out for the only remaining but often invoked case.

Also, the previous code doesn't seem fair game to me, using `get_unchecked` to reach beyond the end of a slice. Although the local function `slice_insert` also does that.

r? `@Mark-Simulacrum`
2020-09-18 05:47:00 +00:00
..
benches fix benchmark compile errors 2020-09-03 20:59:33 +02:00
src Auto merge of #76790 - ssomers:btree_slice_slasher_returns, r=Mark-Simulacrum 2020-09-18 05:47:00 +00:00
tests Rollup merge of #76662 - RalfJung:lib-test-miri, r=Mark-Simulacrum 2020-09-16 08:25:02 +02:00
Cargo.toml