]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/future_not_send.rs
Rollup merge of #106287 - Nilstrieb:its-bugging-me-how-we-dont-have-docs, r=jyn514
[rust.git] / src / tools / clippy / clippy_lints / src / future_not_send.rs
index fcdac90fc237ae1a1a18bd7ffcf3e722e53bb545..989f83cf80d5972301fc06eef9604796f674a7b8 100644 (file)
@@ -62,7 +62,7 @@ fn check_fn(
             return;
         }
         let ret_ty = return_ty(cx, hir_id);
-        if let ty::Alias(ty::Opaque, AliasTy { def_id, substs }) = *ret_ty.kind() {
+        if let ty::Alias(ty::Opaque, AliasTy { def_id, substs, .. }) = *ret_ty.kind() {
             let preds = cx.tcx.explicit_item_bounds(def_id);
             let mut is_future = false;
             for &(p, _span) in preds {