Remove TyCtxt::hir_krate.

It's a trivial wrapper around the `hir_crate` query with a small number
of uses.
This commit is contained in:
Nicholas Nethercote 2025-02-17 13:24:07 +11:00
parent 661f99ba03
commit f666361caa
3 changed files with 3 additions and 9 deletions

View file

@ -294,7 +294,7 @@ pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) {
}
HirTree => {
debug!("pretty printing HIR tree");
format!("{:#?}", ex.tcx().hir_krate())
format!("{:#?}", ex.tcx().hir_crate(()))
}
Mir => {
let mut out = Vec::new();