Skip to content

Commit f1abdfe

Browse files
committed
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.
2 parents 220acf9 + d7f367b commit f1abdfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/doc/missing_headers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub fn check(
7272
&& let body = cx.tcx.hir().body(body_id)
7373
&& let ret_ty = typeck.expr_ty(body.value)
7474
&& implements_trait(cx, ret_ty, future, &[])
75-
&& let ty::Coroutine(_, subs, _) = ret_ty.kind()
75+
&& let ty::Coroutine(_, subs) = ret_ty.kind()
7676
&& is_type_diagnostic_item(cx, subs.as_coroutine().return_ty(), sym::Result)
7777
{
7878
span_lint(

0 commit comments

Comments
 (0)