We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f893495 commit eac1e30Copy full SHA for eac1e30
library/core/src/fmt/mod.rs
@@ -2598,7 +2598,7 @@ impl Debug for () {
2598
#[stable(feature = "rust1", since = "1.0.0")]
2599
impl<T: ?Sized> Debug for PhantomData<T> {
2600
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
2601
- f.debug_struct("PhantomData").finish()
+ write!(f, "PhantomData<{}>", crate::any::type_name::<T>())
2602
}
2603
2604
0 commit comments