Auto merge of #5467 - matthiaskrgr:rustup_43, r=flip1995

rustup https://github.com/rust-lang/rust/pull/71116

changelog: none
This commit is contained in:
bors 2020-04-15 17:46:24 +00:00
commit a9a4c8e630

View File

@ -97,7 +97,8 @@ fn check_variant(&mut self, cx: &LateContext<'a, 'tcx>, var: &'tcx hir::Variant<
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();
}