Skip to content

Commit

Permalink
Relax Pod for PhantomData (#195)
Browse files Browse the repository at this point in the history
As with Zeroable for PhantomData.
  • Loading branch information
zachs18 authored Jun 15, 2023
1 parent c286994 commit 588d890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ unsafe impl<T: 'static> Pod for *const T {}
#[cfg(feature = "unsound_ptr_pod_impl")]
unsafe impl<T: 'static> PodInOption for NonNull<T> {}

unsafe impl<T: Pod> Pod for PhantomData<T> {}
unsafe impl<T: ?Sized + 'static> Pod for PhantomData<T> {}
unsafe impl Pod for PhantomPinned {}
unsafe impl<T: Pod> Pod for ManuallyDrop<T> {}

Expand Down

0 comments on commit 588d890

Please sign in to comment.