Skip to content

Commit

Permalink
rustup #71116
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Apr 15, 2020
1 parent c496f4e commit 7215495
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clippy_lints/src/utils/author.rs
Expand Up @@ -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();
}

Expand Down

0 comments on commit 7215495

Please sign in to comment.