diff options
| author | Michael Goulet <michael@errs.io> | 2023-01-03 07:31:04 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-01-04 00:43:13 +0000 |
| commit | a313ef05a78330ac342cddf819214cb6414164e2 (patch) | |
| tree | 1902ae8d9786d51b8f8a2205f149694e04fdb2e8 /compiler/rustc_ty_utils | |
| parent | c7572670a1302f5c7e245d069200e22da9df0316 (diff) | |
| download | rust-a313ef05a78330ac342cddf819214cb6414164e2.tar.gz rust-a313ef05a78330ac342cddf819214cb6414164e2.zip | |
rename get_parent_node to parent_id
Diffstat (limited to 'compiler/rustc_ty_utils')
| -rw-r--r-- | compiler/rustc_ty_utils/src/ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/ty.rs b/compiler/rustc_ty_utils/src/ty.rs index e2d10f550c3..e17b8346c0e 100644 --- a/compiler/rustc_ty_utils/src/ty.rs +++ b/compiler/rustc_ty_utils/src/ty.rs @@ -161,7 +161,7 @@ fn param_env(tcx: TyCtxt<'_>, def_id: DefId) -> ty::ParamEnv<'_> { kind: hir::ImplItemKind::Type(..) | hir::ImplItemKind::Fn(..), .. }) => { - let parent_hir_id = tcx.hir().get_parent_node(hir_id); + let parent_hir_id = tcx.hir().parent_id(hir_id); match tcx.hir().get(parent_hir_id) { hir::Node::Item(hir::Item { kind: hir::ItemKind::Impl(hir::Impl { constness, .. }), |
