Add T to PhantomData impl Debug
This commit is contained in:
parent
f893495e3d
commit
eac1e30bd8
@ -2598,7 +2598,7 @@ fn fmt(&self, f: &mut Formatter<'_>) -> Result {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T: ?Sized> Debug for PhantomData<T> {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
|
||||
f.debug_struct("PhantomData").finish()
|
||||
write!(f, "PhantomData<{}>", crate::any::type_name::<T>())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user