diff options
| author | Michael Goulet <michael@errs.io> | 2023-12-21 01:52:10 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-12-28 16:35:01 +0000 |
| commit | 99b4330f5cdcf258a8146950d33426c6bb442abc (patch) | |
| tree | c5fb7fe87fd656ebe7c8b5973a8dea79fdc4fc40 | |
| parent | 2230add36ed178ed247a2cfcb879c37b34aacc89 (diff) | |
| download | rust-99b4330f5cdcf258a8146950d33426c6bb442abc.tar.gz rust-99b4330f5cdcf258a8146950d33426c6bb442abc.zip | |
Remove movability from TyKind::Coroutine
| -rw-r--r-- | clippy_lints/src/doc/missing_headers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/doc/missing_headers.rs b/clippy_lints/src/doc/missing_headers.rs index 4cbfa97a8a3..26f120cb33f 100644 --- a/clippy_lints/src/doc/missing_headers.rs +++ b/clippy_lints/src/doc/missing_headers.rs @@ -72,7 +72,7 @@ pub fn check( && let body = cx.tcx.hir().body(body_id) && let ret_ty = typeck.expr_ty(body.value) && implements_trait(cx, ret_ty, future, &[]) - && let ty::Coroutine(_, subs, _) = ret_ty.kind() + && let ty::Coroutine(_, subs) = ret_ty.kind() && is_type_diagnostic_item(cx, subs.as_coroutine().return_ty(), sym::Result) { span_lint( |
