Add T to PhantomData impl Debug
This commit is contained in:
parent
f893495e3d
commit
eac1e30bd8
1 changed files with 1 additions and 1 deletions
|
|
@ -2598,7 +2598,7 @@ impl Debug for () {
|
|||
#[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…
Add table
Add a link
Reference in a new issue