From 3923766b67c010e66037f1ff55042525699a9060 Mon Sep 17 00:00:00 2001 From: Alphyr <47725341+a1phyr@users.noreply.github.com> Date: Thu, 9 Dec 2021 02:59:22 +0100 Subject: [PATCH] Impls for `PhantomPinned` and more `PhantomData` (#79) --- src/pod.rs | 1 + src/zeroable.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pod.rs b/src/pod.rs index aef4af6..20b5648 100644 --- a/src/pod.rs +++ b/src/pod.rs @@ -66,6 +66,7 @@ unsafe impl Pod for *const T {} unsafe impl Pod for Option> {} unsafe impl Pod for PhantomData {} +unsafe impl Pod for PhantomPinned {} unsafe impl Pod for ManuallyDrop {} // Note(Lokathor): MaybeUninit can NEVER be Pod. diff --git a/src/zeroable.rs b/src/zeroable.rs index ae9e6ef..6cc1b31 100644 --- a/src/zeroable.rs +++ b/src/zeroable.rs @@ -59,6 +59,7 @@ unsafe impl Zeroable for *mut T {} unsafe impl Zeroable for *const T {} unsafe impl Zeroable for Option> {} unsafe impl Zeroable for PhantomData {} +unsafe impl Zeroable for PhantomPinned {} unsafe impl Zeroable for ManuallyDrop {} #[cfg(feature = "zeroable_maybe_uninit")]