Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 26232f1

Browse files
committed
Remove useless parameter from ghost
1 parent ad92677 commit 26232f1

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_data_structures/src/tagged_ptr

1 file changed

+2
-2
lines changed

compiler/rustc_data_structures/src/tagged_ptr/copy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ where
2020
T: Tag,
2121
{
2222
packed: NonNull<P::Target>,
23-
data: PhantomData<(P, T)>,
23+
tag_ghost: PhantomData<T>,
2424
}
2525

2626
impl<P, T, const COMPARE_PACKED: bool> Copy for CopyTaggedPtr<P, T, COMPARE_PACKED>
@@ -51,7 +51,7 @@ where
5151
T: Tag,
5252
{
5353
pub fn new(pointer: P, tag: T) -> Self {
54-
Self { packed: Self::pack(P::into_ptr(pointer), tag), data: PhantomData }
54+
Self { packed: Self::pack(P::into_ptr(pointer), tag), tag_ghost: PhantomData }
5555
}
5656

5757
const TAG_BIT_SHIFT: usize = usize::BITS as usize - T::BITS;

0 commit comments

Comments
 (0)