Rename dummy_hir_id -> parent_hir_id

This commit is contained in:
Philipp Krones 2020-04-15 19:46:05 +02:00 committed by GitHub
parent 721549569c
commit a353f0f174
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,8 +97,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Author {
return;
}
prelude();
let dummy_hir_id = cx.tcx.hir().get_parent_node(var.id);
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), dummy_hir_id);
let parent_hir_id = cx.tcx.hir().get_parent_node(var.id);
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), parent_hir_id);
done();
}