mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Auto merge of #5361 - matthiaskrgr:rustup_37, r=flip1995
rustup https://github.com/rust-lang/rust/pull/69968/ changelog: none
This commit is contained in:
commit
43bdee034f
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue