Skip to content

Commit

Permalink
Auto merge of #126784 - scottmcm:smaller-terminator, r=compiler-errors
Browse files Browse the repository at this point in the history
Save 2 pointers in `TerminatorKind` (96 → 80 bytes)

These things don't need to be `Vec`s; boxed slices are enough.

The frequent one here is call arguments, but MIR building knows the number of arguments from the THIR, so the collect is always getting the allocation right in the first place, and thus this shouldn't ever add the shrink-in-place overhead.
  • Loading branch information
bors committed Jun 24, 2024
2 parents 15fe118 + 96f9d9f commit 0429493
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 0429493

Please sign in to comment.