1
Fork 0

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

View file

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