about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-01-10 04:18:34 +0900
committerGitHub <noreply@github.com>2020-01-10 04:18:34 +0900
commit78db333f9dd6786b156e2b3e4bec85f959d22606 (patch)
tree9058a3e8dcb00399ee292fa91d1bf4f111675908 /src/libcore
parent02ef0dcf692c3fbd822ba8f7859d3a827a5d9800 (diff)
parent9b92bf83156fbe4892fd7a1aa186ce15cce3b770 (diff)
downloadrust-78db333f9dd6786b156e2b3e4bec85f959d22606.tar.gz
rust-78db333f9dd6786b156e2b3e4bec85f959d22606.zip
Rollup merge of #67725 - ssomers:into_key_slice_mut, r=RalfJung
Simplify into_key_slice_mut

Remove a rare and tiny but superfluous run-time check from into_key_slice_mut.

In #67459, I wrote that "`get_mut` [...] does visit `into_key_slice_mut`" and that was wrong. No function that operates on a map that (still) has a shared root ever dives into `into_key_slice_mut`.  So it's more clear to remove the (previously existing, and always incomplete) code it has for dealing with shared roots, as well as a petty performance improvement for those using exotically aligned key types.

~~Also, some testing of the `range` function initially added to #67686 but hardly related.~~

r? @RalfJung
Diffstat (limited to 'src/libcore')
0 files changed, 0 insertions, 0 deletions