Auto merge of #126784 - scottmcm:smaller-terminator, r=compiler-errors · rust-lang/rust@d8d5732
@@ -730,7 +730,7 @@ pub enum TerminatorKind<'tcx> {
730730 /// reused across function calls without duplicating the contents.
731731 /// The span for each arg is also included
732732 /// (e.g. `a` and `b` in `x.foo(a, b)`).
733- args: Vec<Spanned<Operand<'tcx>>>,
733+ args: Box<[Spanned<Operand<'tcx>>]>,
734734/// Where the returned value will be written
735735 destination: Place<'tcx>,
736736/// Where to go after this call returns. If none, the call necessarily diverges.
@@ -837,7 +837,7 @@ pub enum TerminatorKind<'tcx> {
837837 template: &'tcx [InlineAsmTemplatePiece],
838838839839/// The operands for the inline assembly, as `Operand`s or `Place`s.
840- operands: Vec<InlineAsmOperand<'tcx>>,
840+ operands: Box<[InlineAsmOperand<'tcx>]>,
841841842842/// Miscellaneous options for the inline assembly.
843843 options: InlineAsmOptions,
@@ -849,7 +849,7 @@ pub enum TerminatorKind<'tcx> {
849849/// Valid targets for the inline assembly.
850850 /// The first element is the fallthrough destination, unless
851851 /// InlineAsmOptions::NORETURN is set.
852- targets: Vec<BasicBlock>,
852+ targets: Box<[BasicBlock]>,
853853854854/// Action to be taken if the inline assembly unwinds. This is present
855855 /// if and only if InlineAsmOptions::MAY_UNWIND is set.
@@ -1561,6 +1561,6 @@ mod size_asserts {
15611561static_assert_size!(PlaceElem<'_>, 24);
15621562static_assert_size!(Rvalue<'_>, 40);
15631563static_assert_size!(StatementKind<'_>, 16);
1564-static_assert_size!(TerminatorKind<'_>, 96);
1564+static_assert_size!(TerminatorKind<'_>, 80);
15651565// tidy-alphabetical-end
15661566}