mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 13:51:16 +00:00
[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:
parent
7dfde3b929
commit
d5e1b7983e
1 changed files with 1 additions and 0 deletions
|
@ -507,6 +507,7 @@ enum Segments {
|
||||||
}
|
}
|
||||||
|
|
||||||
static_assertions::assert_eq_size!(SmallSegments, u64);
|
static_assertions::assert_eq_size!(SmallSegments, u64);
|
||||||
|
#[cfg(target_pointer_width = "64")]
|
||||||
static_assertions::assert_eq_size!(Segments, [u64; 2]);
|
static_assertions::assert_eq_size!(Segments, [u64; 2]);
|
||||||
|
|
||||||
impl Segments {
|
impl Segments {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue