mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
346f43e2aa
Remove redundant information in `rustc_abi::Variants` Follow-up to rust-lang/rust#151040; partially addresses rust-lang/rust#113988. Replaces the nested `LayoutData` in `Variants::Multiple` by a new, smaller `VariantLayout` struct, and adjust `LayoutData::for_variant`and the layout algorithm in consequence. This PR is best reviewed commit-by-commit.