rename find_parent_node to opt_parent_id

This commit is contained in:
Michael Goulet 2023-01-03 07:31:33 +00:00
parent a313ef05a7
commit 6af339dbfa
8 changed files with 9 additions and 9 deletions

View file

@ -716,7 +716,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
num = num_trait_generics_except_self,
);
if let Some(parent_node) = self.tcx.hir().find_parent_node(self.path_segment.hir_id)
if let Some(parent_node) = self.tcx.hir().opt_parent_id(self.path_segment.hir_id)
&& let Some(parent_node) = self.tcx.hir().find(parent_node)
&& let hir::Node::Expr(expr) = parent_node {
match expr.kind {