diff options
| author | b-naber <bn263@gmx.de> | 2023-01-26 23:35:24 +0100 |
|---|---|---|
| committer | b-naber <bn263@gmx.de> | 2023-01-26 23:39:57 +0100 |
| commit | 9438126fd12a57fe065cbfe35a952024a7d8e4c0 (patch) | |
| tree | 28615d1272f9091828ea8340e6fcc7ad4db84e9f /compiler/rustc_middle/src/query | |
| parent | 3bce66f786685b74fbeb7eae53ccf6283fded994 (diff) | |
| download | rust-9438126fd12a57fe065cbfe35a952024a7d8e4c0.tar.gz rust-9438126fd12a57fe065cbfe35a952024a7d8e4c0.zip | |
previous thir unpretty output through thir-flat
Diffstat (limited to 'compiler/rustc_middle/src/query')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index b1e0d380d04..2543614318f 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -361,6 +361,13 @@ rustc_queries! { desc { |tcx| "constructing THIR tree for `{}`", tcx.def_path_str(key.did.to_def_id()) } } + /// Create a list-like THIR representation for debugging. + query thir_flat(key: ty::WithOptConstParam<LocalDefId>) -> String { + no_hash + arena_cache + desc { |tcx| "constructing flat THIR representation for `{}`", tcx.def_path_str(key.did.to_def_id()) } + } + /// Set of all the `DefId`s in this crate that have MIR associated with /// them. This includes all the body owners, but also things like struct /// constructors. |
