From 87043a2415339d1db5294b93cc51b735f170ac0c Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Thu, 21 Nov 2024 13:49:55 +0100 Subject: [PATCH] Limit type size assertion to 64bit (#14514) --- crates/red_knot_python_semantic/src/types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/red_knot_python_semantic/src/types.rs b/crates/red_knot_python_semantic/src/types.rs index 50362c34cc427..b19d52b4c970c 100644 --- a/crates/red_knot_python_semantic/src/types.rs +++ b/crates/red_knot_python_semantic/src/types.rs @@ -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)]