rust/compiler/rustc_middle/src
Matthias Krüger 9f83e56f0d
Rollup merge of #111988 - BoxyUwU:make_tykind_debug_good, r=compiler-errors
Make `TyKind: Debug` have less verbose output

Current `TyKind: Debug` impl is basically unusable for debugging, its too verbose even for verbose debugging 🤣 This PR replaces the debug logic for `TyKind` with a more manual debug impl instead of a hand expanded derived impl. This should help make #107084 more reasonable to land since the output of `Ty: Debug` will be better.

This isn't a fully completed change to the `Debug` impl of `TyKind` as there's still logic from the derive macro for some variants. Some of the variants are also not consisten with the `-Zverbose` printing of `Ty`, ideally `-Zverbose` printing of `Ty` would also just defer to the debug impl instead of having lots of checks in pretty printing. I plan on fixing this in follow up PRs since it seems tricky to do in this one and its already a large PR 😅
2023-05-29 21:34:17 +02:00
..
dep_graph Allow LocalDefId as the argument to def_path_str 2023-04-21 22:27:20 +00:00
hir Use Option::is_some_and and Result::is_ok_and in the compiler 2023-05-24 14:20:41 +00:00
infer Use OpaqueTypeKey in query response 2023-05-10 23:41:06 +00:00
middle Use Cow in {D,Subd}iagnosticMessage. 2023-05-29 09:23:43 +10:00
mir Auto merge of #111813 - scottmcm:pretty-mir, r=cjgillot 2023-05-28 21:53:56 +00:00
query Rollup merge of #111870 - WaffleLapkin:just_🌟traits🌟_query, r=compiler-errors 2023-05-24 06:05:38 +02:00
thir offset_of 2023-04-21 02:14:02 -07:00
traits Fallible<_> -> Result<_, NoSolution> 2023-05-25 17:29:22 +00:00
ty Rollup merge of #111988 - BoxyUwU:make_tykind_debug_good, r=compiler-errors 2023-05-29 21:34:17 +02:00
util Move expansion of query macros in rustc_middle to rustc_middle::query 2023-05-15 08:49:13 +02:00
arena.rs Prepopulate opaques in canonical input 2023-05-25 03:21:22 +00:00
error.rs Remove LangItems::require 2023-05-16 19:53:38 +02:00
lib.rs Finish move of query.rs 2023-05-17 01:57:21 +02:00
lint.rs Use Cow in {D,Subd}iagnosticMessage. 2023-05-29 09:23:43 +10:00
macros.rs Simplify CloneLiftImpls and TrivialTypeTraversalImpls. 2023-04-16 14:19:50 +10:00
metadata.rs rustc_metadata: Remove Span from ModChild 2023-04-18 17:25:04 +03:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Remove unused TypeFoldable/TypeVisitable impls. 2023-04-26 15:19:50 +10:00
values.rs Replace EarlyBinder(x) with EarlyBinder::new(x) 2023-05-28 10:44:50 -06:00