diff --git a/src/lib.rs b/src/lib.rs index c80e2ba..4e4b7f1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1485,8 +1485,9 @@ impl_zeroable! { i8, i16, i32, i64, i128, isize, f32, f64, - // SAFETY: These are ZSTs, there is nothing to zero. - {} PhantomData, core::marker::PhantomPinned, Infallible, (), + // SAFETY: These are inhabited ZSTs, there is nothing to zero + // and a valid value exists. + {} PhantomData, core::marker::PhantomPinned, (), // SAFETY: Type is allowed to take any value, including all zeros. {} MaybeUninit,