rename get_parent_node to parent_id
This commit is contained in:
parent
c7572670a1
commit
a313ef05a7
48 changed files with 119 additions and 121 deletions
|
@ -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, .. }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue