Rename dummy_hir_id -> parent_hir_id
This commit is contained in:
parent
721549569c
commit
a353f0f174
@ -97,8 +97,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Author {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
prelude();
|
prelude();
|
||||||
let dummy_hir_id = cx.tcx.hir().get_parent_node(var.id);
|
let parent_hir_id = cx.tcx.hir().get_parent_node(var.id);
|
||||||
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), dummy_hir_id);
|
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), parent_hir_id);
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user