Skip to content

Commit 05f603e

Browse files
committed
Auto merge of #4447 - phansch:fix_build, r=matthiaskrgr
Rustup to rust-lang/rust#63854 changelog: none
2 parents 2bcb615 + 818b2cc commit 05f603e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/missing_doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc {
196196
}
197197
}
198198

199-
fn check_variant(&mut self, cx: &LateContext<'a, 'tcx>, v: &'tcx hir::Variant, _: &hir::Generics) {
199+
fn check_variant(&mut self, cx: &LateContext<'a, 'tcx>, v: &'tcx hir::Variant) {
200200
self.check_missing_docs_attrs(cx, &v.attrs, v.span, "a variant");
201201
}
202202
}

clippy_lints/src/utils/author.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Author {
9090
done();
9191
}
9292

93-
fn check_variant(&mut self, cx: &LateContext<'a, 'tcx>, var: &'tcx hir::Variant, generics: &hir::Generics) {
93+
fn check_variant(&mut self, cx: &LateContext<'a, 'tcx>, var: &'tcx hir::Variant) {
9494
if !has_attr(cx.sess(), &var.attrs) {
9595
return;
9696
}
9797
prelude();
98-
PrintVisitor::new("var").visit_variant(var, generics, hir::DUMMY_HIR_ID);
98+
PrintVisitor::new("var").visit_variant(var, &hir::Generics::empty(), hir::DUMMY_HIR_ID);
9999
done();
100100
}
101101

0 commit comments

Comments
 (0)