diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-10 10:53:12 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-10-13 06:20:11 +1100 |
| commit | c5cfcdc4ac0880b171dc0004c660e3a6fd315ee0 (patch) | |
| tree | fe6c87cfb07c93960f2a00c4f1b52be924587243 /compiler/rustc_driver_impl/src | |
| parent | ef8701a4a02e21230401ace80a19169f9f9a6ff8 (diff) | |
| download | rust-c5cfcdc4ac0880b171dc0004c660e3a6fd315ee0.tar.gz rust-c5cfcdc4ac0880b171dc0004c660e3a6fd315ee0.zip | |
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.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
| -rw-r--r-- | compiler/rustc_driver_impl/src/pretty.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_driver_impl/src/pretty.rs b/compiler/rustc_driver_impl/src/pretty.rs index 5d49c78dea4..bae0d3dd6a6 100644 --- a/compiler/rustc_driver_impl/src/pretty.rs +++ b/compiler/rustc_driver_impl/src/pretty.rs @@ -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!(), |
