From d5e1b7983efb7fa1c19634fc0b98b0e9791e43c5 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Thu, 7 Aug 2025 14:38:16 -0400 Subject: [PATCH] [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. --- crates/ty_python_semantic/src/semantic_index/member.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ty_python_semantic/src/semantic_index/member.rs b/crates/ty_python_semantic/src/semantic_index/member.rs index 51399ab6a7..8511c7b295 100644 --- a/crates/ty_python_semantic/src/semantic_index/member.rs +++ b/crates/ty_python_semantic/src/semantic_index/member.rs @@ -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 {