about summary refs log tree commit diff
path: root/tests/coverage/branch/lazy-boolean.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-10 06:28:37 +0100
committerGitHub <noreply@github.com>2025-01-10 06:28:37 +0100
commiteaf420638e68e8acf800ae9e57457bba096d033a (patch)
tree2effce7ee6a9610bc647b071118711e28c38d935 /tests/coverage/branch/lazy-boolean.rs
parent62bf38fa600f4beb878d61c537837729d4ee689e (diff)
parentd89b6d5ac6ceb7f735c8d2c7397fb6bb0e0e3020 (diff)
downloadrust-eaf420638e68e8acf800ae9e57457bba096d033a.tar.gz
rust-eaf420638e68e8acf800ae9e57457bba096d033a.zip
Rollup merge of #133088 - the8472:randomize-me-harder, r=workingjubilee
`-Zrandomize-layout` harder. `Foo<T> != Foo<U>`

Tracking issue: #106764

Previously randomize-layout only used a deterministic shuffle based on the seed stored in an Adt's ReprOptions, meaning that `Foo<T>`  and `Foo<U>` were shuffled by the same seed. This change adds a similar seed to each calculated LayoutData so that a struct can be randomized both based on the layout of its fields and its per-type seed.
Primitives start with simple seed derived from some of their properties. Though some types can no longer be distinguished at that point, e.g. usize and u64 will still be treated the same.
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.rs')
0 files changed, 0 insertions, 0 deletions