]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #46808 - eddyb:issue-46769-quick, r=arielb1
authorbors <bors@rust-lang.org>
Mon, 18 Dec 2017 20:44:18 +0000 (20:44 +0000)
committerbors <bors@rust-lang.org>
Mon, 18 Dec 2017 20:44:18 +0000 (20:44 +0000)
rustc: ensure optimized enums have a properly aligned size.

Fixes #46769 by padding the optimized enums wrapping packed data as necessary.

Note that this is not the only way to solve this - on nightly, #46436 makes it easier to fix without adding new padding because of the replacement of `packed` flags with a non-redundant scheme.
But because it can't be backported, the optimal fix will be in a separate nightly-only PR (#46809).


Trivial merge