about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-12-28 20:41:44 +0000
committerbors <bors@rust-lang.org>2023-12-28 20:41:44 +0000
commitfb5ed726f72c6d16c788517c60ec00d4564b9348 (patch)
tree5c45cd5eb94c4a4812a2701cc557fdbbe797ab26 /src
parent3ee671095499d83ba18d510683fa2a784d7d2ad2 (diff)
parente24da8ea197b4b6724aaf7b5a5a2de64bb3c7445 (diff)
downloadrust-fb5ed726f72c6d16c788517c60ec00d4564b9348.tar.gz
rust-fb5ed726f72c6d16c788517c60ec00d4564b9348.zip
Auto merge of #119174 - compiler-errors:movability, r=cjgillot
Remove movability from `TyKind::Coroutine`

There's no reason to store movability in the generator struct directly. It is computed from the HIR, and can be pulled into a query to access when necessary.
Diffstat (limited to 'src')
-rw-r--r--src/tools/clippy/clippy_lints/src/doc/missing_headers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/doc/missing_headers.rs b/src/tools/clippy/clippy_lints/src/doc/missing_headers.rs
index 4cbfa97a8a3..26f120cb33f 100644
--- a/src/tools/clippy/clippy_lints/src/doc/missing_headers.rs
+++ b/src/tools/clippy/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(