rust/tests/ui/abi
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
..
cross-crate
extern
foreign
issues
mir
numbers-arithmetic
statics
struct-enums
union
abi-sysv64-arg-passing.rs
abi-sysv64-register-usage.rs
abi-typo-unstable.rs
abi-typo-unstable.stderr
anon-extern-mod.rs
c-stack-as-value.rs
c-stack-returning-int64.rs
cabi-int-widening.rs
compatibility.rs rustc_layout, rustc_abi: make sure the types are well-formed 2023-09-09 17:32:12 +02:00
debug.rs Disentangle Debug and Display for Ty. 2023-09-11 12:51:07 +10:00
debug.stderr Disentangle Debug and Display for Ty. 2023-09-11 12:51:07 +10:00
explicit_repr_rust.rs
homogenous-floats-target-feature-mixup.rs
issue-28676.rs
issue-94223.rs
lib-defaults.rs
nullable-pointer-ffi-compat.rs
relocation_model_pic.rs Add the relocation_model to the cfg 2023-08-18 19:57:28 +02:00
riscv-discoverability-guidance.riscv32.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
riscv-discoverability-guidance.riscv64.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
riscv-discoverability-guidance.rs feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
rustcall-generic.rs
segfault-no-out-of-stack.rs
stack-probes-lto.rs
stack-probes.rs
stack-protector.rs Fix stack-protector.rs on LLVM 17 2023-08-07 20:35:55 +02:00
unsupported.aarch64.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.arm.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.i686.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.riscv32.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.riscv64.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.rs feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
unsupported.x64.stderr feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
variadic-ffi.rs
x86stdcall2.rs
x86stdcall.rs