about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-09-19 01:29:41 +0200
committerGitHub <noreply@github.com>2023-09-19 01:29:41 +0200
commit48c605129beeae01a82ed35fd70ca56d6bf196ba (patch)
treed52d8dc5f1349538590fd94487e8f1ae3c4ce0eb /compiler/rustc_codegen_llvm/src/errors.rs
parent0eec5e3d0c5bff2abf0cd35596d1476628d44478 (diff)
parentb2bf4b66f8512e234244fa7264af757c5775bbbd (diff)
downloadrust-48c605129beeae01a82ed35fd70ca56d6bf196ba.tar.gz
rust-48c605129beeae01a82ed35fd70ca56d6bf196ba.zip
Rollup merge of #115873 - BoxyUwU:tykind_adt_debug, r=oli-obk
Make `TyKind::Adt`'s `Debug` impl be more pretty

Currently `{:?}` on `Ty` for a `TyKind::Adt` would print as `Adt(Foo, [])`. This PR changes it to be `Foo` when there are no generics or `Foo<T>`/`Foo<T, U>` when there _are_ generics. Example from debug log:
`├─0ms DEBUG rustc_hir_analysis::astconv return=Bar<T/#0, U/#1>`

I should have done this in my initial PR for a prettier TyKind: Debug impl but I thought I would need to be accessing generics_of to figure out where in the "path" the generics would have to go??? but no, adts literally only have a single place the generics can go (on the end). Feel a bit silly about this :)

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions