Skip to content

Commit c5cfcdc

Browse files
committed
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.
1 parent ef8701a commit c5cfcdc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

compiler/rustc_driver_impl/src/pretty.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,8 @@ pub fn print_after_hir_lowering<'tcx>(tcx: TyCtxt<'tcx>, ppm: PpMode) {
441441
}),
442442

443443
HirTree => {
444-
call_with_pp_support_hir(&PpHirMode::Normal, tcx, move |_annotation, hir_map| {
445-
debug!("pretty printing HIR tree");
446-
format!("{:#?}", hir_map.krate())
447-
})
444+
debug!("pretty printing HIR tree");
445+
format!("{:#?}", tcx.hir().krate())
448446
}
449447

450448
_ => unreachable!(),

0 commit comments

Comments
 (0)