This commit is contained in:
parent
c496f4e63f
commit
721549569c
1 changed files with 2 additions and 1 deletions
|
|
@ -97,7 +97,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Author {
|
|||
return;
|
||||
}
|
||||
prelude();
|
||||
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), hir::DUMMY_HIR_ID);
|
||||
let dummy_hir_id = cx.tcx.hir().get_parent_node(var.id);
|
||||
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), dummy_hir_id);
|
||||
done();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue