Remove useless parameter from ghost

This commit is contained in:
Maybe Waffle 2023-04-12 10:21:12 +00:00
parent ad92677008
commit 26232f1ff5

View File

@ -20,7 +20,7 @@ where
T: Tag, T: Tag,
{ {
packed: NonNull<P::Target>, packed: NonNull<P::Target>,
data: PhantomData<(P, T)>, tag_ghost: PhantomData<T>,
} }
impl<P, T, const COMPARE_PACKED: bool> Copy for CopyTaggedPtr<P, T, COMPARE_PACKED> impl<P, T, const COMPARE_PACKED: bool> Copy for CopyTaggedPtr<P, T, COMPARE_PACKED>
@ -51,7 +51,7 @@ where
T: Tag, T: Tag,
{ {
pub fn new(pointer: P, tag: T) -> Self { pub fn new(pointer: P, tag: T) -> Self {
Self { packed: Self::pack(P::into_ptr(pointer), tag), data: PhantomData } Self { packed: Self::pack(P::into_ptr(pointer), tag), tag_ghost: PhantomData }
} }
const TAG_BIT_SHIFT: usize = usize::BITS as usize - T::BITS; const TAG_BIT_SHIFT: usize = usize::BITS as usize - T::BITS;