Skip to content

Commit

Permalink
Auto merge of rust-lang#5467 - matthiaskrgr:rustup_43, r=flip1995
Browse files Browse the repository at this point in the history
rustup rust-lang#71116

changelog: none
  • Loading branch information
bors committed Apr 15, 2020
2 parents c496f4e + a353f0f commit a9a4c8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clippy_lints/src/utils/author.rs
Original file line number Diff line number Diff line change
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 parent_hir_id = cx.tcx.hir().get_parent_node(var.id);
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), parent_hir_id);
done();
}

Expand Down

0 comments on commit a9a4c8e

Please sign in to comment.