diff --git a/crates/oxc_data_structures/src/stack/non_null.rs b/crates/oxc_data_structures/src/stack/non_null.rs index 80bf8f2a5..2dbb6ac39 100644 --- a/crates/oxc_data_structures/src/stack/non_null.rs +++ b/crates/oxc_data_structures/src/stack/non_null.rs @@ -13,6 +13,7 @@ use std::{cmp::Ordering, ptr::NonNull as NativeNonNull}; /// a lint warning when that happens. /// Then this module can be deleted, and all uses of this type can be switched to `std::ptr::NonNull`. #[derive(Debug)] +#[repr(transparent)] pub struct NonNull(NativeNonNull); #[cfg(clippy)]