Skip to content

Commit 588d890

Browse files
authored
Relax Pod for PhantomData (Lokathor#195)
As with Zeroable for PhantomData.
1 parent c286994 commit 588d890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ unsafe impl<T: 'static> Pod for *const T {}
6060
#[cfg(feature = "unsound_ptr_pod_impl")]
6161
unsafe impl<T: 'static> PodInOption for NonNull<T> {}
6262

63-
unsafe impl<T: Pod> Pod for PhantomData<T> {}
63+
unsafe impl<T: ?Sized + 'static> Pod for PhantomData<T> {}
6464
unsafe impl Pod for PhantomPinned {}
6565
unsafe impl<T: Pod> Pod for ManuallyDrop<T> {}
6666

0 commit comments

Comments
 (0)