about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-09-12 11:33:16 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-09-29 23:16:48 +0200
commitabc57f63ad98436f8a97c710f357e1e45088effc (patch)
treedae2fe24033f71a6635198c98594e0887a17e71c /compiler/rustc_mir_transform/src
parentdb9fea508a6db55075d7851211ea5d4b0485e322 (diff)
downloadrust-abc57f63ad98436f8a97c710f357e1e45088effc.tar.gz
rust-abc57f63ad98436f8a97c710f357e1e45088effc.zip
Move body_owners to tcx.hir().
Diffstat (limited to 'compiler/rustc_mir_transform/src')
-rw-r--r--compiler/rustc_mir_transform/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/lib.rs b/compiler/rustc_mir_transform/src/lib.rs
index fadb7014570..b1b31e0784c 100644
--- a/compiler/rustc_mir_transform/src/lib.rs
+++ b/compiler/rustc_mir_transform/src/lib.rs
@@ -133,7 +133,7 @@ fn mir_keys(tcx: TyCtxt<'_>, (): ()) -> FxHashSet<LocalDefId> {
     let mut set = FxHashSet::default();
 
     // All body-owners have MIR associated with them.
-    set.extend(tcx.body_owners());
+    set.extend(tcx.hir().body_owners());
 
     // Additionally, tuple struct/variant constructors have MIR, but
     // they don't have a BodyId, so we need to build them separately.