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
..
2023-01-19 15:46:08 +00:00
2023-08-08 10:51:35 +08:00
2023-04-27 22:29:04 +02:00
2023-09-07 01:31:32 +00:00
2023-08-28 03:16:48 -07:00
2023-05-10 19:36:02 +02:00
2023-09-07 02:08:51 +00:00
2023-08-02 14:18:21 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-01-27 18:58:13 +00:00
2023-05-12 00:10:52 +00:00
2023-01-27 20:10:17 +00:00
2023-04-27 17:18:11 +00:00
2023-04-27 17:18:11 +00:00
2023-01-27 20:10:17 +00:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-01-27 20:10:17 +00:00
2023-02-09 10:26:49 +00:00
2023-09-11 12:51:07 +10:00
2023-03-17 16:01:53 -03:00
2023-03-17 16:01:53 -03:00
2023-03-17 16:01:53 -03:00
2023-03-17 16:01:53 -03:00
2023-01-12 11:58:24 -08:00
2023-04-27 17:18:11 +00:00
2023-04-27 17:18:11 +00:00
2023-07-10 20:09:28 +00:00
2023-08-17 14:33:24 -07:00
2023-01-27 18:58:13 +00:00
2023-02-13 16:23:23 +01:00
2023-01-27 18:58:13 +00:00
2023-06-05 21:00:08 +00:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-01-27 18:58:13 +00:00
2023-06-12 20:24:48 +08:00
2023-03-17 16:01:53 -03:00
2023-03-17 16:01:53 -03:00
2023-07-08 18:21:34 -03:00
2023-07-08 18:21:34 -03:00
2023-04-19 19:13:45 +00:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-01-27 18:58:13 +00:00
2023-06-12 20:24:48 +08:00
2023-08-27 22:03:16 +00:00
2023-08-27 22:03:16 +00:00
2023-03-08 15:37:14 +01:00
2023-02-13 16:23:23 +01:00
2023-02-13 16:23:23 +01:00
2023-07-10 20:09:26 +00:00
2023-04-19 19:13:45 +00:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-01-27 20:10:17 +00:00
2023-04-27 17:18:11 +00:00
2023-04-27 17:18:11 +00:00
2023-04-27 17:18:11 +00:00
2023-01-27 20:10:17 +00:00
2023-04-27 17:18:11 +00:00
2023-04-27 17:18:11 +00:00
2023-04-27 17:18:11 +00:00
2023-01-27 20:10:17 +00:00
2023-01-27 18:58:13 +00:00
2023-08-28 03:16:48 -07:00
2023-06-12 20:24:48 +08:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-01-27 20:10:17 +00:00
2023-01-27 20:10:17 +00:00
2023-01-19 21:09:25 +01:00
2023-01-19 21:09:25 +01:00
2023-01-27 20:10:17 +00:00
2023-04-27 17:18:11 +00:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-01-27 18:58:13 +00:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-06-20 19:46:01 -04:00
2023-08-28 03:16:48 -07:00
2023-01-27 18:58:13 +00:00
2023-01-27 18:58:13 +00:00
2023-01-27 18:58:13 +00:00
2023-01-27 18:58:13 +00:00
2023-04-19 17:57:37 +00:00
2023-01-15 19:46:20 +00:00
2023-01-15 19:46:20 +00:00
2023-05-24 19:35:59 -03:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-01-27 18:58:13 +00:00
2023-01-27 18:58:13 +00:00
2023-01-30 21:51:35 +00:00
2023-04-27 17:18:11 +00:00
2023-04-27 17:18:12 +00:00
2023-01-19 15:46:08 +00:00
2023-03-05 09:34:00 +13:00
2023-03-05 09:34:00 +13:00
2023-09-03 08:15:25 +02:00
2023-09-03 08:15:25 +02:00
2023-09-03 08:15:25 +02:00
2023-04-03 20:45:02 +02:00
2023-01-27 18:58:13 +00:00
2023-01-27 18:58:13 +00:00
2023-01-27 18:58:13 +00:00
2023-01-27 18:58:13 +00:00
2023-03-08 15:37:14 +01:00
2023-03-08 15:37:14 +01:00
2023-06-12 20:24:48 +08:00
2023-08-16 14:28:19 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-08-28 03:16:48 -07:00
2023-04-12 18:03:11 -04:00
2023-01-30 20:12:19 +00:00
2023-01-27 18:58:13 +00:00
2023-01-27 18:58:13 +00:00
2023-01-27 18:58:13 +00:00
2023-01-27 18:58:13 +00:00
2023-01-27 20:10:17 +00:00
2023-02-13 16:23:23 +01:00
2023-02-13 16:23:23 +01:00
2023-04-11 11:07:48 +10:00
2023-04-27 18:25:07 +00:00
2023-04-27 18:25:07 +00:00
2023-01-27 20:10:17 +00:00
2023-04-27 17:18:11 +00:00
2023-04-27 17:18:11 +00:00
2023-01-27 20:10:17 +00:00