rust/compiler/rustc_middle/src
Yuki Okushi 038ece0a42
Rollup merge of #109956 - compiler-errors:tweak-debug-outputs, r=oli-obk
Tweak debug outputs to make debugging new solver easier

1. Move the fields that are "most important" (I know this is subjective) to the beginning of the structs.

For goals, I typically care more about the predicate than the param-env (which is significantly longer in debug output).
For canonicalized things, I typically care more about what is *being* canonicalized.
For a canonical response, I typically care about the response -- or at least, it's typically useful to put it first since it's short and affects the whether the solver recurses or not...

2. Add some more debug and instrument calls to functions to add more structure to tracing lines.

r? `@oli-obk` or `@BoxyUwU` (since I think `@lcnr` is on holiday)
2023-04-05 20:47:24 +09:00
..
dep_graph Pass DepContext and QueryContext by value when practical 2023-02-14 17:21:18 +01:00
hir Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
infer Tweak debug outputs to make debugging new solver easier 2023-04-05 03:18:29 +00:00
middle fix clippy::iter_kv_map 2023-04-01 23:44:16 +02:00
mir Rollup merge of #109901 - cjgillot:validate-debuginfo, r=b-naber 2023-04-04 09:27:44 -07:00
query Move mir::Fieldabi::FieldIdx 2023-03-28 22:22:37 -07:00
thir Move THIR printing to rustc_mir_build. 2023-02-26 14:31:15 +00:00
traits Tweak debug outputs to make debugging new solver easier 2023-04-05 03:18:29 +00:00
ty Rollup merge of #109938 - oli-obk:try_norm, r=compiler-errors 2023-04-04 09:27:47 -07:00
util Add some docs to bug, span_bug and delay_span_bug 2022-12-30 16:47:56 +01:00
arena.rs rustc_interface: Add a new query pre_configure 2023-03-23 14:22:48 +04:00
error.rs fix(middle): emit error rather than delay bug when reaching limit 2023-04-03 11:08:14 +08:00
lib.rs Stabilize a portion of 'once_cell' 2023-03-29 18:04:44 -04:00
lint.rs create helper function for rustc_lint_defs::Level and remove it's duplicated code r=ozkanonur 2023-01-10 10:56:17 +03:00
macros.rs Remove type-traversal trait aliases 2023-02-22 17:04:58 +00:00
metadata.rs rustc: Parameterize ty::Visibility over used ID 2022-09-07 13:35:41 +04:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Update ty::VariantDef to use IndexVec<FieldIdx, FieldDef> 2023-03-30 09:23:40 -07:00
values.rs rustc_middle: Remove trait DefIdTree 2023-03-02 23:46:44 +04:00