summary refs log tree commit diff
path: root/compiler/rustc_data_structures
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2023-04-12 10:21:12 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2023-04-12 10:34:29 +0000
commit26232f1ff5a28f1dadd159a9604e668c55e40585 (patch)
tree70c40238f289d335889d08741cf651aa7c7b042a /compiler/rustc_data_structures
parentad92677008c23655744c92951c322dc5e453e6f9 (diff)
downloadrust-26232f1ff5a28f1dadd159a9604e668c55e40585.tar.gz
rust-26232f1ff5a28f1dadd159a9604e668c55e40585.zip
Remove useless parameter from ghost
Diffstat (limited to 'compiler/rustc_data_structures')
-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;