get_parent and find_parent
This commit is contained in:
@@ -457,7 +457,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
||||
.def_id
|
||||
.as_local()
|
||||
.map(|id| hir.local_def_id_to_hir_id(id))
|
||||
.and_then(|id| self.hir().find(self.hir().parent_id(id)))
|
||||
.and_then(|id| self.hir().find_parent(id))
|
||||
.as_ref()
|
||||
.and_then(|node| node.generics())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user