[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user