diff options
| author | Antoine PLASKOWSKI <antoine.plaskowski@epitech.eu> | 2022-07-09 23:28:22 +0200 |
|---|---|---|
| committer | Antoine PLASKOWSKI <antoine.plaskowski@epitech.eu> | 2022-07-09 23:28:22 +0200 |
| commit | eac1e30bd8620446c123b4f0d2c0ea054acdee56 (patch) | |
| tree | 402af95dbd42fb7671d2c5c0e1856b26a4a06a14 | |
| parent | f893495e3da91dc319d37861b803eed9d6c8c7c7 (diff) | |
| download | rust-eac1e30bd8620446c123b4f0d2c0ea054acdee56.tar.gz rust-eac1e30bd8620446c123b4f0d2c0ea054acdee56.zip | |
Add T to PhantomData impl Debug
| -rw-r--r-- | library/core/src/fmt/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index 6c3bb7229e5..a3b3ced779f 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -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>()) } } |
