about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--compiler/rustc_data_structures/src/tagged_ptr/copy.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_data_structures/src/tagged_ptr/copy.rs b/compiler/rustc_data_structures/src/tagged_ptr/copy.rs
index 065aaa40759..0a2d38c21f0 100644
--- a/compiler/rustc_data_structures/src/tagged_ptr/copy.rs
+++ b/compiler/rustc_data_structures/src/tagged_ptr/copy.rs
@@ -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;