mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:34:57 +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);
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
static_assertions::assert_eq_size!(Segments, [u64; 2]);
|
||||
|
||||
impl Segments {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue