[ty] Fix static assertion size check (#19814)

A `Segment` has a `Box` in it, which has a platform dependent size.
Restrict the check to only 64-bit targets.
This commit is contained in:
Andrew Gallant
2025-08-07 14:38:16 -04:00
committed by GitHub
parent 7dfde3b929
commit d5e1b7983e

View File

@@ -507,6 +507,7 @@ enum Segments {
}
static_assertions::assert_eq_size!(SmallSegments, u64);
#[cfg(target_pointer_width = "64")]
static_assertions::assert_eq_size!(Segments, [u64; 2]);
impl Segments {