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:
parent
ef8701a4a0
commit
c5cfcdc4ac
1 changed files with 2 additions and 4 deletions
|
@ -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!(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue