mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Remove useless parameter from ghost
This commit is contained in:
parent
ad92677008
commit
26232f1ff5
@ -20,7 +20,7 @@ where
|
||||
T: Tag,
|
||||
{
|
||||
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>
|
||||
@ -51,7 +51,7 @@ where
|
||||
T: Tag,
|
||||
{
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user