diff options
| author | Philipp Hansch <dev@phansch.net> | 2019-08-25 08:06:32 +0200 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2019-08-25 08:06:32 +0200 |
| commit | 818b2ccfc519163dd2a97dcc4636aed48953bde1 (patch) | |
| tree | 68f6e4ba261ebcd6ce8822e3749f59e7082490e5 | |
| parent | 2bcb6155948e2f8b86db08152a5f54bd5af625e5 (diff) | |
| download | rust-818b2ccfc519163dd2a97dcc4636aed48953bde1.tar.gz rust-818b2ccfc519163dd2a97dcc4636aed48953bde1.zip | |
Rustup to https://github.com/rust-lang/rust/pull/63854
| -rw-r--r-- | clippy_lints/src/missing_doc.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/utils/author.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/missing_doc.rs b/clippy_lints/src/missing_doc.rs index 6c575fd94a8..33d1fce4e2a 100644 --- a/clippy_lints/src/missing_doc.rs +++ b/clippy_lints/src/missing_doc.rs @@ -196,7 +196,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for MissingDoc { } } - 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"); } } diff --git a/clippy_lints/src/utils/author.rs b/clippy_lints/src/utils/author.rs index e987b447a26..87208dd4beb 100644 --- a/clippy_lints/src/utils/author.rs +++ b/clippy_lints/src/utils/author.rs @@ -90,12 +90,12 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Author { 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(); } |
