Skip to content

Commit

Permalink
Auto merge of #5361 - matthiaskrgr:rustup_37, r=flip1995
Browse files Browse the repository at this point in the history
rustup rust-lang/rust#69968

changelog: none
  • Loading branch information
bors committed Mar 23, 2020
2 parents 89303da + 0f31951 commit 43bdee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 43bdee0

Please sign in to comment.