Skip to content

Commit d5e1b79

Browse files
authored
[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.
1 parent 7dfde3b commit d5e1b79

File tree

1 file changed

+1
-0
lines changed
  • crates/ty_python_semantic/src/semantic_index

1 file changed

+1
-0
lines changed

crates/ty_python_semantic/src/semantic_index/member.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ enum Segments {
507507
}
508508

509509
static_assertions::assert_eq_size!(SmallSegments, u64);
510+
#[cfg(target_pointer_width = "64")]
510511
static_assertions::assert_eq_size!(Segments, [u64; 2]);
511512

512513
impl Segments {

0 commit comments

Comments
 (0)