diff options
author | bors <bors@rust-lang.org> | 2023-05-17 03:37:54 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-05-17 03:37:54 +0000 |
commit | 6c64870fa67f0227f40f6adc25a6944e95c2959f (patch) | |
tree | e6be882190a0f88a8e3d3ba28cc2badb1746d393 /tests/ui/borrowck/borrowck-drop-from-guard.rs | |
parent | c0784db3deddfb09f52c65373ef50b14d82494cc (diff) | |
parent | 2a554eb40677a659092c5b95a52821275924c4bf (diff) | |
download | rust-6c64870fa67f0227f40f6adc25a6944e95c2959f.tar.gz |
Auto merge of #111630 - BoxyUwU:ty_const_debug_formatting, r=compiler-errors
debug format `Const`'s less verbosely
Not user visible change only visible to people debugging const generics.
Currently debug output for `ty::Const` is super verbose (even for `-Zverbose` lol), things like printing infer vars as `Infer(Var(?0c))` instead of just `?0c`, bound vars and placeholders not using `^0_1` or `!0_1` syntax respectively. With these changes its imo better but not perfect:
`Const { ty: usize, kind: ^0_1 }`
is still a lot for not much information. not entirely sure what to do about that so not dealing with it yet.
Need to do formatting for `ConstKind::Expr` at some point too since rn it sucks (doesn't even print anything with `Display`) not gonna do that in this PR either.
r? `@compiler-errors`
Diffstat (limited to 'tests/ui/borrowck/borrowck-drop-from-guard.rs')
0 files changed, 0 insertions, 0 deletions