Skip to content

Commit 43bdee0

Browse files
committed
Auto merge of #5361 - matthiaskrgr:rustup_37, r=flip1995
rustup rust-lang/rust#69968 changelog: none
2 parents 89303da + 0f31951 commit 43bdee0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/doc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ fn lint_for_missing_headers<'a, 'tcx>(
234234
if implements_trait(cx, ret_ty, future, &[]);
235235
if let ty::Opaque(_, subs) = ret_ty.kind;
236236
if let Some(gen) = subs.types().next();
237-
if let ty::Generator(def_id, subs, _) = gen.kind;
238-
if match_type(cx, subs.as_generator().return_ty(def_id, cx.tcx), &paths::RESULT);
237+
if let ty::Generator(_, subs, _) = gen.kind;
238+
if match_type(cx, subs.as_generator().return_ty(), &paths::RESULT);
239239
then {
240240
span_lint(
241241
cx,

0 commit comments

Comments
 (0)