diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-17 13:24:07 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-17 13:24:40 +1100 |
| commit | f666361caa963c3f41934d5b431af24d8894d159 (patch) | |
| tree | 37e2d659a44c42c921206a836d4234e6b52e2c1f /compiler/rustc_driver_impl/src | |
| parent | 661f99ba03738f1ee87888342aef920f3c0f7f48 (diff) | |
| download | rust-f666361caa963c3f41934d5b431af24d8894d159.tar.gz rust-f666361caa963c3f41934d5b431af24d8894d159.zip | |
Remove `TyCtxt::hir_krate`.
It's a trivial wrapper around the `hir_crate` query with a small number of uses.
Diffstat (limited to 'compiler/rustc_driver_impl/src')
| -rw-r--r-- | compiler/rustc_driver_impl/src/pretty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/pretty.rs b/compiler/rustc_driver_impl/src/pretty.rs index ea17dd773c0..093ee659bb4 100644 --- a/compiler/rustc_driver_impl/src/pretty.rs +++ b/compiler/rustc_driver_impl/src/pretty.rs @@ -294,7 +294,7 @@ pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) { } HirTree => { debug!("pretty printing HIR tree"); - format!("{:#?}", ex.tcx().hir_krate()) + format!("{:#?}", ex.tcx().hir_crate(())) } Mir => { let mut out = Vec::new(); |
