mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
Auto merge of #4447 - phansch:fix_build, r=matthiaskrgr
Rustup to https://github.com/rust-lang/rust/pull/63854 changelog: none
This commit is contained in:
@@ -196,7 +196,7 @@ fn check_struct_field(&mut self, cx: &LateContext<'a, 'tcx>, sf: &'tcx hir::Stru
|
||||
}
|
||||
}
|
||||
|
||||
fn check_variant(&mut self, cx: &LateContext<'a, 'tcx>, v: &'tcx hir::Variant, _: &hir::Generics) {
|
||||
fn check_variant(&mut self, cx: &LateContext<'a, 'tcx>, v: &'tcx hir::Variant) {
|
||||
self.check_missing_docs_attrs(cx, &v.attrs, v.span, "a variant");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,12 +90,12 @@ fn check_trait_item(&mut self, cx: &LateContext<'a, 'tcx>, item: &'tcx hir::Trai
|
||||
done();
|
||||
}
|
||||
|
||||
fn check_variant(&mut self, cx: &LateContext<'a, 'tcx>, var: &'tcx hir::Variant, generics: &hir::Generics) {
|
||||
fn check_variant(&mut self, cx: &LateContext<'a, 'tcx>, var: &'tcx hir::Variant) {
|
||||
if !has_attr(cx.sess(), &var.attrs) {
|
||||
return;
|
||||
}
|
||||
prelude();
|
||||
PrintVisitor::new("var").visit_variant(var, generics, hir::DUMMY_HIR_ID);
|
||||
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), hir::DUMMY_HIR_ID);
|
||||
done();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user