diff options
| author | Trevor Gross <tmgross@umich.edu> | 2024-06-29 16:14:34 -0400 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2024-06-29 16:39:48 -0400 |
| commit | 682e7c1174161c6e4e48a50e188e09f2dec80712 (patch) | |
| tree | 560fc2dd73f4462b8faedce7ada1eba148eb10ed /compiler/rustc_hir_analysis/src/errors.rs | |
| parent | d1b7355d3d7b4ead564dbecb1d240fcc74fff21b (diff) | |
| download | rust-682e7c1174161c6e4e48a50e188e09f2dec80712.tar.gz rust-682e7c1174161c6e4e48a50e188e09f2dec80712.zip | |
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.
Make this less noisy by converting the inner value back to a `u128` then
printing as a tuple struct.
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
