rust/library
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
..
alloc Auto merge of #76790 - ssomers:btree_slice_slasher_returns, r=Mark-Simulacrum 2020-09-18 05:47:00 +00:00
backtrace@4083a90168
core Rollup merge of #76778 - pickfire:patch-7, r=jonas-schievink 2020-09-16 12:24:28 -07:00
panic_abort
panic_unwind
proc_macro
profiler_builtins
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Auto merge of #76645 - fusion-engineering-forks:windows-lock, r=kennytm 2020-09-17 19:23:58 +00:00
stdarch@718175b34a Update stdarch 2020-09-15 17:26:20 +02:00
term
test
unwind