From 0da8f3a28f175f6a552110d06d43ed8d69244898 Mon Sep 17 00:00:00 2001 From: yvt Date: Mon, 21 Nov 2022 08:40:41 +0900 Subject: [PATCH] Implement `Zeroable` on `UnsafeCell` (#148) --- src/zeroable.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zeroable.rs b/src/zeroable.rs index 4e94664..4d3c28a 100644 --- a/src/zeroable.rs +++ b/src/zeroable.rs @@ -47,6 +47,7 @@ unsafe impl Zeroable for *const T {} unsafe impl Zeroable for PhantomData {} unsafe impl Zeroable for PhantomPinned {} unsafe impl Zeroable for ManuallyDrop {} +unsafe impl Zeroable for core::cell::UnsafeCell {} #[cfg(feature = "zeroable_maybe_uninit")] unsafe impl Zeroable for core::mem::MaybeUninit {}