about summary refs log tree commit diff
path: root/clippy_lints/src/future_not_send.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-12-13 11:07:42 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2022-12-14 15:36:39 +0000
commit65069d5c5b6db1bdf74e4f9243db7ef82d6a3776 (patch)
treeee26b410391bac621c08b0941f6815ca957d8804 /clippy_lints/src/future_not_send.rs
parent957ab6ae52706e3428ca56e727eed9d3333d8170 (diff)
downloadrust-65069d5c5b6db1bdf74e4f9243db7ef82d6a3776.tar.gz
rust-65069d5c5b6db1bdf74e4f9243db7ef82d6a3776.zip
Ensure no one constructs `AliasTy`s themselves
Diffstat (limited to 'clippy_lints/src/future_not_send.rs')
-rw-r--r--clippy_lints/src/future_not_send.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/future_not_send.rs b/clippy_lints/src/future_not_send.rs
index fcdac90fc23..989f83cf80d 100644
--- a/clippy_lints/src/future_not_send.rs
+++ b/clippy_lints/src/future_not_send.rs
@@ -62,7 +62,7 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
             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 {