diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-21 07:54:35 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-21 14:31:09 +1100 |
| commit | 806be25fc9d519d32db1941b0c67a06c8a6faa40 (patch) | |
| tree | 3c0b3d57fe4f10663e171164338aeafead10d545 /compiler/rustc_hir_analysis/src/outlives/mod.rs | |
| parent | 43c2b0086a60ad9864af5ead49b058e8d8ef1de8 (diff) | |
| download | rust-806be25fc9d519d32db1941b0c67a06c8a6faa40.tar.gz rust-806be25fc9d519d32db1941b0c67a06c8a6faa40.zip | |
Move methods from Map to TyCtxt, part 3.
Continuing the work from #137162. Every method gains a `hir_` prefix.
Diffstat (limited to 'compiler/rustc_hir_analysis/src/outlives/mod.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/outlives/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/outlives/mod.rs b/compiler/rustc_hir_analysis/src/outlives/mod.rs index c43917649de..32b05dcc569 100644 --- a/compiler/rustc_hir_analysis/src/outlives/mod.rs +++ b/compiler/rustc_hir_analysis/src/outlives/mod.rs @@ -37,7 +37,7 @@ fn inferred_outlives_of(tcx: TyCtxt<'_>, item_def_id: LocalDefId) -> &[(ty::Clau // parent of generics returned by `generics_of` // // In the above code we want the anon const to have predicates in its param env for `'b: 'a` - let item_def_id = tcx.hir().get_parent_item(id); + let item_def_id = tcx.hir_get_parent_item(id); // In the above code example we would be calling `inferred_outlives_of(Foo)` here tcx.inferred_outlives_of(item_def_id) } else { |
