about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/inline.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-02-18 04:26:30 +0000
committerbors <bors@rust-lang.org>2025-02-18 04:26:30 +0000
commitaaa861493456e8a10e552dd208f85486de772007 (patch)
tree1d0a87efba6dcbd2965ed32f05d25f4950363883 /compiler/rustc_mir_transform/src/inline.rs
parentde91711756133f11f7861dd099c001eaff0aafaa (diff)
parentfd7b4bf4e19b19ebf9b536790ec1668a3e50fe6f (diff)
downloadrust-aaa861493456e8a10e552dd208f85486de772007.tar.gz
rust-aaa861493456e8a10e552dd208f85486de772007.zip
Auto merge of #137162 - nnethercote:remove-Map-2, r=Zalathar
Move methods from `Map` to `TyCtxt`, part 2.

Continuing the work started in #136466.

Every method gains a `hir_` prefix, though for the ones that already have a `par_` or `try_par_` prefix I added the `hir_` after that.

r? Zalathar
Diffstat (limited to 'compiler/rustc_mir_transform/src/inline.rs')
-rw-r--r--compiler/rustc_mir_transform/src/inline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/inline.rs b/compiler/rustc_mir_transform/src/inline.rs
index 1f8392b2118..5981b5031c6 100644
--- a/compiler/rustc_mir_transform/src/inline.rs
+++ b/compiler/rustc_mir_transform/src/inline.rs
@@ -463,7 +463,7 @@ fn inline<'tcx, T: Inliner<'tcx>>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) -> b
     let def_id = body.source.def_id();
 
     // Only do inlining into fn bodies.
-    if !tcx.hir().body_owner_kind(def_id).is_fn_or_closure() {
+    if !tcx.hir_body_owner_kind(def_id).is_fn_or_closure() {
         return false;
     }