Skip to content

Commit

Permalink
Auto merge of #100298 - BlackHoleFox:hashmap_keygen_cleanup, r=Mark-S…
Browse files Browse the repository at this point in the history
…imulacrum

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.
  • Loading branch information
bors committed Aug 11, 2022
2 parents b61ad34 + c577ae9 commit 52a26db
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 52a26db

Please sign in to comment.