From 26232f1ff5a28f1dadd159a9604e668c55e40585 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Wed, 12 Apr 2023 10:21:12 +0000 Subject: [PATCH] Remove useless parameter from ghost --- compiler/rustc_data_structures/src/tagged_ptr/copy.rs | 4 ++-- 1 file 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, - data: PhantomData<(P, T)>, + tag_ghost: PhantomData, } impl Copy for CopyTaggedPtr @@ -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;