Skip to content

Commit

Permalink
Auto merge of #120080 - cuviper:128-align-packed, r=nikic
Browse files Browse the repository at this point in the history
Pack u128 in the compiler to mitigate new alignment

This is based on #116672, adding a new `#[repr(packed(8))]` wrapper on `u128` to avoid changing any of the compiler's size assertions. This is needed in two places:

* `SwitchTargets`, otherwise its `SmallVec<[u128; 1]>` gets padded up to 32 bytes.
* `LitKind::Int`, so that entire `enum` can stay 24 bytes.
  * This change definitely has far-reaching effects though, since it's public.
  • Loading branch information
bors committed Jan 22, 2024
2 parents 7453492 + c7963d3 commit 6a88330
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 6a88330

Please sign in to comment.