Skip to content

Commit

Permalink
Limit type size assertion to 64bit (#14514)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser authored Nov 21, 2024
1 parent f684b6f commit 87043a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/red_knot_python_semantic/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2967,6 +2967,7 @@ impl<'db> TupleType<'db> {

// Make sure that the `Type` enum does not grow unexpectedly.
#[cfg(not(debug_assertions))]
#[cfg(target_pointer_width = "64")]
static_assertions::assert_eq_size!(Type, [u8; 16]);

#[cfg(test)]
Expand Down

0 comments on commit 87043a2

Please sign in to comment.