Use niche-filling optimization even when multiple variants have data.

Fixes #46213
This commit is contained in:
Michael Benfield 2022-03-08 19:07:01 +00:00
parent 1a08b96a0b
commit d7a750b504
13 changed files with 338 additions and 158 deletions

View file

@ -1231,7 +1231,8 @@ pub enum BinOp {
mod size_asserts {
use super::*;
// These are in alphabetical order, which is easy to maintain.
static_assert_size!(AggregateKind<'_>, 48);
#[cfg(not(bootstrap))]
static_assert_size!(AggregateKind<'_>, 40);
static_assert_size!(Operand<'_>, 24);
static_assert_size!(Place<'_>, 16);
static_assert_size!(PlaceElem<'_>, 24);