about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-11 02:46:32 +0000
committerbors <bors@rust-lang.org>2022-08-11 02:46:32 +0000
commit187654481fd828e495919295369d33827f10e1c4 (patch)
tree6d55e7dfa5f26a0c40bfd7aee5a6e533222c9f9e /compiler/rustc_codegen_llvm/src
parent908fc5b26d15fc96d630ab921e70b2db77a532c4 (diff)
parent0cf950375140ab293ad5af1e7a59556335c409da (diff)
downloadrust-187654481fd828e495919295369d33827f10e1c4.tar.gz
rust-187654481fd828e495919295369d33827f10e1c4.zip
Auto merge of #100298 - BlackHoleFox:hashmap_keygen_cleanup, r=Mark-Simulacrum
Replace pointer casting in hashmap_random_keys with safe code

The old code was unnecessarily unsafe and relied on the layout of tuples always being the same as an array of the same size (which might be bad with `-Z randomize-layout`)?

The replacement has [identical codegen](https://rust.godbolt.org/z/qxsvdb8nx), so it seems like a reasonable change.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions