]> git.lizzy.rs Git - rust.git/commit
Auto merge of #46623 - eddyb:issue-46449, r=nagisa
authorbors <bors@rust-lang.org>
Fri, 15 Dec 2017 19:02:22 +0000 (19:02 +0000)
committerbors <bors@rust-lang.org>
Fri, 15 Dec 2017 19:02:22 +0000 (19:02 +0000)
commit77efd6800c57ba83923dddbbabf03c7afa6a34a4
tree3524f06aa28cea73cda2b2c151dc5d817ab80b9a
parent50f6c3ece0ec738da48f8e77e6379a14bd02d1f4
parent8a26e0422dc55b82577de3027800ca29a4d522b7
Auto merge of #46623 - eddyb:issue-46449, r=nagisa

rustc_trans: approximate ABI alignment for padding/union fillers.

Before #45225 and after this PR, unions and enums are filled with integers of size and alignment matching their alignment (e.g. `Option<u32>` becomes `[u32; 2]`) instead of mere bytes.
Also, the alignment padding between struct fields gets this treatment after this PR.

Partially helps with some reduced testcases in #46449, although it doesn't solve the bug itself.