diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-06-30 10:39:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-30 10:39:48 +0200 |
| commit | f2c287f744301f9833b5acd02d7951bb93ac3cba (patch) | |
| tree | e6dd0d12f01ad3df246796bb29fb1a765c7df8db /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | 515d17cd158fea1426827d2f40dbdc09a2001da4 (diff) | |
| parent | 682e7c1174161c6e4e48a50e188e09f2dec80712 (diff) | |
| download | rust-f2c287f744301f9833b5acd02d7951bb93ac3cba.tar.gz rust-f2c287f744301f9833b5acd02d7951bb93ac3cba.zip | |
Rollup merge of #127134 - tgross35:typeid-debug, r=Nilstrieb
Print `TypeId` as a `u128` for `Debug`
Since <https://github.com/rust-lang/rust/pull/121358>, `TypeId` is represented as a `(u64, u64)`. This also made the debug implementation a lot larger, which is especially apparent with pretty formatting.
Change this to convert the inner value back to a `u128` and then print as a tuple struct to make this less noisy.
Current:
TypeId { t: (1403077013027291752, 4518903163082958039) }
TypeId {
t: (
1403077013027291752,
4518903163082958039,
),
}
New:
TypeId(25882202575019293479932656973818029271)
TypeId(
25882202575019293479932656973818029271,
)
Diffstat (limited to 'compiler/rustc_hir_analysis/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
