mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
5b9e886403
Ignore ZST offsets when deciding whether to use Scalar/ScalarPair layout This is important because Scalar/ScalarPair layout previously would not be used if any ZST had nonzero offset. For example, before this change, only `((), u128)` would be laid out like `u128`, not `(u128, ())`. Fixes #63244
For more information about how rustc works, see the rustc dev guide.