diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-09-12 11:33:16 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-09-29 23:16:48 +0200 |
| commit | abc57f63ad98436f8a97c710f357e1e45088effc (patch) | |
| tree | dae2fe24033f71a6635198c98594e0887a17e71c /compiler/rustc_mir_transform/src | |
| parent | db9fea508a6db55075d7851211ea5d4b0485e322 (diff) | |
| download | rust-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.rs | 2 |
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. |
