diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-12 10:21:12 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2023-04-12 10:34:29 +0000 |
| commit | 26232f1ff5a28f1dadd159a9604e668c55e40585 (patch) | |
| tree | 70c40238f289d335889d08741cf651aa7c7b042a /compiler/rustc_data_structures | |
| parent | ad92677008c23655744c92951c322dc5e453e6f9 (diff) | |
| download | rust-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.rs | 4 |
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; |
