diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-01-31 14:42:19 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-01-31 15:13:51 +1100 |
| commit | 4b025ca083948c573a6b4affc0dedf3e4275dd4d (patch) | |
| tree | 7b7482f9d6155431ea74607e868d2ccf028454ee /compiler/rustc_middle/src/hooks/mod.rs | |
| parent | be1aa7bb2a417ea87cea83b500bc3005d4f71e6a (diff) | |
| download | rust-4b025ca083948c573a6b4affc0dedf3e4275dd4d.tar.gz rust-4b025ca083948c573a6b4affc0dedf3e4275dd4d.zip | |
Remove the `thir_{tree,flat}` hooks.
They were downgraded from queries in #123995 but they can just be vanilla functions because they are not called in `rustc_middle`.
Diffstat (limited to 'compiler/rustc_middle/src/hooks/mod.rs')
| -rw-r--r-- | compiler/rustc_middle/src/hooks/mod.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_middle/src/hooks/mod.rs b/compiler/rustc_middle/src/hooks/mod.rs index f546bf6cad5..03bbac342eb 100644 --- a/compiler/rustc_middle/src/hooks/mod.rs +++ b/compiler/rustc_middle/src/hooks/mod.rs @@ -99,12 +99,6 @@ declare_hooks! { /// Will fetch a DefId from a DefPathHash for a foreign crate. hook def_path_hash_to_def_id_extern(hash: DefPathHash, stable_crate_id: StableCrateId) -> DefId; - /// Create a THIR tree for debugging. - hook thir_tree(key: LocalDefId) -> String; - - /// Create a list-like THIR representation for debugging. - hook thir_flat(key: LocalDefId) -> String; - /// Returns `true` if we should codegen an instance in the local crate, or returns `false` if we /// can just link to the upstream crate and therefore don't need a mono item. /// |
