Remove unnecessary call to `call_with_pp_support_hir`.

The callback is trivial and no pp support is actually needed. This makes
the `HirTree` case more like the `AstTree` case above.
This commit is contained in:
Nicholas Nethercote 2023-10-10 10:53:12 +11:00
parent ef8701a4a0
commit c5cfcdc4ac
1 changed files with 2 additions and 4 deletions

View File

@ -441,10 +441,8 @@ pub fn print_after_hir_lowering<'tcx>(tcx: TyCtxt<'tcx>, ppm: PpMode) {
}),
HirTree => {
call_with_pp_support_hir(&PpHirMode::Normal, tcx, move |_annotation, hir_map| {
debug!("pretty printing HIR tree");
format!("{:#?}", hir_map.krate())
})
debug!("pretty printing HIR tree");
format!("{:#?}", tcx.hir().krate())
}
_ => unreachable!(),