]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_incremental/src/persist/load.rs
Auto merge of #99099 - Stargateur:phantomdata_debug, r=joshtriplett
authorbors <bors@rust-lang.org>
Tue, 4 Oct 2022 00:56:14 +0000 (00:56 +0000)
committerbors <bors@rust-lang.org>
Tue, 4 Oct 2022 00:56:14 +0000 (00:56 +0000)
commit1f1defc2f6f5c828e287845d04076cd22e90671e
tree6c121dea6c7320c634bb4b57abf3dcb0a26ea777
parentf83e0266cf7aaa4b41505c49a5fd9c2363166522
parenteac1e30bd8620446c123b4f0d2c0ea054acdee56
Auto merge of #99099 - Stargateur:phantomdata_debug, r=joshtriplett

Add T to PhantomData impl Debug

This add debug information for `PhantomData`, I believe it's make sense to add this to debug impl of `PhantomData` since `T` is what define what is the `PhantomData` just write `"PhantomData"` is not very useful for debugging.

Alternative:

* `PhantomData::<{}>`
* `PhantomData { t: "str_type" }`

`@rustbot` label +T-libs-api -T-libs
library/core/src/fmt/mod.rs