rust/tests
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
..
assembly
auxiliary
codegen Auto merge of #115417 - dpaoliello:fixdi, r=wesleywiser 2023-09-08 20:56:01 +00:00
codegen-units
coverage-map
debuginfo
incremental
mir-opt Disentangle Debug and Display for Ty. 2023-09-11 12:51:07 +10:00
pretty
run-coverage
run-coverage-rustdoc
run-make tests: use warning output from rustc to catch missing compression 2023-09-08 11:30:24 -04:00
run-make-fulldeps Add missing Debuginfo to PDB debug file on windows. 2023-09-08 00:28:40 +02:00
run-pass-valgrind
rustdoc Rollup merge of #115201 - notriddle:notriddle/type-alias-impl-list, r=GuillaumeGomez 2023-09-08 14:10:51 +02:00
rustdoc-gui Migrate GUI colors test to original CSS color format 2023-09-10 14:10:10 +02:00
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui
ui Disentangle Debug and Display for Ty. 2023-09-11 12:51:07 +10:00
ui-fulldeps Implement and test monomorphization 2023-09-06 08:16:04 +00:00
COMPILER_TESTS.md