From 0f319513d25de94a5bf3edfab9fbff14e296eafb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Mon, 23 Mar 2020 15:21:46 +0100 Subject: [PATCH] rustup https://github.com/rust-lang/rust/pull/69968/ --- clippy_lints/src/doc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/doc.rs b/clippy_lints/src/doc.rs index 9b028cd0f..63b8d519c 100644 --- a/clippy_lints/src/doc.rs +++ b/clippy_lints/src/doc.rs @@ -234,8 +234,8 @@ fn lint_for_missing_headers<'a, 'tcx>( if implements_trait(cx, ret_ty, future, &[]); if let ty::Opaque(_, subs) = ret_ty.kind; if let Some(gen) = subs.types().next(); - if let ty::Generator(def_id, subs, _) = gen.kind; - if match_type(cx, subs.as_generator().return_ty(def_id, cx.tcx), &paths::RESULT); + if let ty::Generator(_, subs, _) = gen.kind; + if match_type(cx, subs.as_generator().return_ty(), &paths::RESULT); then { span_lint( cx,