diff options
| author | Michael Benfield <mbenfield@google.com> | 2022-03-08 19:07:01 +0000 |
|---|---|---|
| committer | Michael Benfield <mbenfield@google.com> | 2022-09-07 20:12:45 +0000 |
| commit | d7a750b50436fbd228b176f6438566625e235990 (patch) | |
| tree | 4fc710101a6ad49617739201ebb72660e54b2e43 /compiler/rustc_ast/src | |
| parent | 1a08b96a0bb7c170130144214787b4a46aa5eb17 (diff) | |
| download | rust-d7a750b50436fbd228b176f6438566625e235990.tar.gz rust-d7a750b50436fbd228b176f6438566625e235990.zip | |
Use niche-filling optimization even when multiple variants have data.
Fixes #46213
Diffstat (limited to 'compiler/rustc_ast/src')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index f25fdc942b0..e38572f609b 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -3075,7 +3075,8 @@ mod size_asserts { static_assert_size!(Block, 48); static_assert_size!(Expr, 104); static_assert_size!(ExprKind, 72); - static_assert_size!(Fn, 192); + #[cfg(not(bootstrap))] + static_assert_size!(Fn, 184); static_assert_size!(ForeignItem, 96); static_assert_size!(ForeignItemKind, 24); static_assert_size!(GenericArg, 24); |
