diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2025-03-12 10:19:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-12 10:19:26 -0700 |
| commit | f88f27aff008d0fc6be906ee7b4d1a55f8d59aef (patch) | |
| tree | 07814f454b900ec8ac01d026ce55fa643e641b22 /compiler/rustc_driver_impl/src/pretty.rs | |
| parent | 185dd2d01b87e7122427a10dab7e1d92b6976f6c (diff) | |
| parent | 256c27e748b477c1ec1c59bdc23afade5eec84aa (diff) | |
| download | rust-f88f27aff008d0fc6be906ee7b4d1a55f8d59aef.tar.gz rust-f88f27aff008d0fc6be906ee7b4d1a55f8d59aef.zip | |
Rollup merge of #137504 - nnethercote:remove-Map-4, r=Zalathar
Move methods from Map to TyCtxt, part 4. A follow-up to https://github.com/rust-lang/rust/pull/137350. r? ```@Zalathar```
Diffstat (limited to 'compiler/rustc_driver_impl/src/pretty.rs')
| -rw-r--r-- | compiler/rustc_driver_impl/src/pretty.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_driver_impl/src/pretty.rs b/compiler/rustc_driver_impl/src/pretty.rs index 828a14e707c..16d70af7e05 100644 --- a/compiler/rustc_driver_impl/src/pretty.rs +++ b/compiler/rustc_driver_impl/src/pretty.rs @@ -268,8 +268,7 @@ pub fn print<'tcx>(sess: &Session, ppm: PpMode, ex: PrintExtra<'tcx>) { let tcx = ex.tcx(); let f = |annotation: &dyn pprust_hir::PpAnn| { let sm = sess.source_map(); - let hir_map = tcx.hir(); - let attrs = |id| hir_map.attrs(id); + let attrs = |id| tcx.hir_attrs(id); pprust_hir::print_crate( sm, tcx.hir_root_module(), |
