Skip to content

Commit eac1e30

Browse files
committed
Add T to PhantomData impl Debug
1 parent f893495 commit eac1e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2598,7 +2598,7 @@ impl Debug for () {
25982598
#[stable(feature = "rust1", since = "1.0.0")]
25992599
impl<T: ?Sized> Debug for PhantomData<T> {
26002600
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
2601-
f.debug_struct("PhantomData").finish()
2601+
write!(f, "PhantomData<{}>", crate::any::type_name::<T>())
26022602
}
26032603
}
26042604

0 commit comments

Comments
 (0)