rust/tests/mir-opt/building
Nicholas Nethercote 64ea8eb1a9 Disentangle Debug and Display for Ty.
The `Debug` impl for `Ty` just calls the `Display` impl for `Ty`. This
is surprising and annoying. In particular, it means `Debug` doesn't show
as much information as `Debug` for `TyKind` does. And `Debug` is used in
some user-facing error messages, which seems bad.

This commit changes the `Debug` impl for `Ty` to call the `Debug` impl
for `TyKind`. It also does a number of follow-up changes to preserve
existing output, many of which involve inserting
`with_no_trimmed_paths!` calls. It also adds `Display` impls for
`UserType` and `Canonical`.

Some tests have changes to expected output:
- Those that use the `rustc_abi(debug)` attribute.
- Those that use the `EMIT_MIR` annotation.

In each case the output is slightly uglier than before. This isn't
ideal, but it's pretty weird (particularly for the attribute) that the
output is using `Debug` in the first place. They're fairly obscure
attributes (I hadn't heard of them) so I'm not worried by this.

For `async-is-unwindsafe.stderr`, there is one line that now lacks a
full path. This is a consistency improvement, because all the other
mentions of `Context` in this test lack a path.
2023-09-11 12:51:07 +10:00
..
custom Support debuginfo for custom MIR. 2023-09-01 16:16:31 +00:00
async_await.a-{closure#0}.generator_resume.0.mir Run AbortUnwindingCalls after generator transform 2023-08-18 13:51:42 +01:00
async_await.b-{closure#0}.generator_resume.0.mir Disentangle Debug and Display for Ty. 2023-09-11 12:51:07 +10:00
async_await.rs
enum_cast.bar.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.boo.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.droppy.built.after.mir make MIR less verbose 2023-08-24 14:26:26 +02:00
enum_cast.far.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.foo.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.offsetty.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.rs
enum_cast.signy.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
enum_cast.unsigny.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
issue_49232.main.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
issue_49232.rs
issue_101867.main.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
issue_101867.rs
issue_110508.{impl#0}-BAR.built.after.mir rename constants in mir dump test 2023-07-05 04:28:45 +00:00
issue_110508.{impl#0}-SELF_BAR.built.after.mir rename constants in mir dump test 2023-07-05 04:28:45 +00:00
issue_110508.rs rename constants in mir dump test 2023-07-05 04:28:45 +00:00
logical_or_in_conditional.rs mir-opt test before patch 2023-08-30 17:24:09 +08:00
logical_or_in_conditional.test_complex.built.after.mir lower ExprKind::Use, LogicalOp::Or and UnOp::Not 2023-08-30 17:24:10 +08:00
logical_or_in_conditional.test_or.built.after.mir lower ExprKind::Use, LogicalOp::Or and UnOp::Not 2023-08-30 17:24:10 +08:00
match_false_edges.full_tested_match2.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
match_false_edges.full_tested_match.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
match_false_edges.main.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
match_false_edges.rs
receiver_ptr_mutability.main.built.after.mir Rename adjustment::PointerCast and variants using it to PointerCoercion 2023-07-07 18:17:16 +02:00
receiver_ptr_mutability.rs
shifts.rs
shifts.shift_signed.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
shifts.shift_unsigned.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
simple_match.match_bool.built.after.mir Remove comments from mir-opt MIR dumps 2023-06-15 15:19:11 -04:00
simple_match.rs
storage_live_dead_in_statics.rs
storage_live_dead_in_statics.XXX.built.after.mir Rename adjustment::PointerCast and variants using it to PointerCoercion 2023-07-07 18:17:16 +02:00
uniform_array_move_out.move_out_by_subslice.built.after.mir make MIR less verbose 2023-08-24 14:26:26 +02:00
uniform_array_move_out.move_out_from_end.built.after.mir make MIR less verbose 2023-08-24 14:26:26 +02:00
uniform_array_move_out.rs