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/mir-opt/nll/region_subtyping_basic.main.nll.0.32bit.mir | |
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/mir-opt/nll/region_subtyping_basic.main.nll.0.32bit.mir')
-rw-r--r-- | tests/mir-opt/nll/region_subtyping_basic.main.nll.0.32bit.mir | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mir-opt/nll/region_subtyping_basic.main.nll.0.32bit.mir b/tests/mir-opt/nll/region_subtyping_basic.main.nll.0.32bit.mir index 71bdfcc5c49..c425f3cd506 100644 --- a/tests/mir-opt/nll/region_subtyping_basic.main.nll.0.32bit.mir +++ b/tests/mir-opt/nll/region_subtyping_basic.main.nll.0.32bit.mir @@ -22,7 +22,7 @@ | fn main() -> () { let mut _0: (); // return place in scope 0 at $DIR/region_subtyping_basic.rs:+0:11: +0:11 - let mut _1: [usize; Const(Value(Leaf(0x00000003)): usize)]; // in scope 0 at $DIR/region_subtyping_basic.rs:+1:9: +1:14 + let mut _1: [usize; Const { ty: usize, kind: Leaf(0x00000003) }]; // in scope 0 at $DIR/region_subtyping_basic.rs:+1:9: +1:14 let _3: usize; // in scope 0 at $DIR/region_subtyping_basic.rs:+2:16: +2:17 let mut _4: usize; // in scope 0 at $DIR/region_subtyping_basic.rs:+2:14: +2:18 let mut _5: bool; // in scope 0 at $DIR/region_subtyping_basic.rs:+2:14: +2:18 |