about summary refs log tree commit diff
path: root/tests/ui/thir-print
AgeCommit message (Collapse)AuthorLines
2023-12-04Don't include destruction scopes in THIRMatthew Jasper-306/+163
They are not used by anyone, and add memory/performance overhead.
2023-09-18make more prettyBoxy-90/+26
2023-09-11Disentangle `Debug` and `Display` for `Ty`.Nicholas Nethercote-26/+90
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-07-14refactor(rustc_middle): Substs -> GenericArgMahdi Dibaiee-8/+8
2023-07-01add thir-print testEric Mark Martin-0/+417
2023-05-26better `TyKind::Debug`Boxy-1/+1
2023-04-05Bless testsThom Chiovoloni-31/+31
2023-03-02Make `ExprKind` the first field in `thir::Expr`Nilstrieb-9/+9
This makes its `Debug` impl print it first which is useful, as it's the most important part when looking at an expr.
2023-02-26Store the body type in THIR.Camille GILLOT-0/+3
2023-01-27address reviewb-naber-0/+472