diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2021-11-29 20:42:16 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2021-11-29 21:19:50 +0800 |
| commit | 99eeb66e0ffa97309c29c3af69614553cbf88ef8 (patch) | |
| tree | 5dea502950a4cbffaf62e1867980aea6dc2fecc9 /clippy_lints/src | |
| parent | 3c8b644d0d7d6fcd56db2184d4b5622d9e50ca37 (diff) | |
Fix tools
Diffstat (limited to 'clippy_lints/src')
| -rw-r--r-- | clippy_lints/src/future_not_send.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/future_not_send.rs b/clippy_lints/src/future_not_send.rs index 6b2ac985555..a9297adb426 100644 --- a/clippy_lints/src/future_not_send.rs +++ b/clippy_lints/src/future_not_send.rs @@ -67,8 +67,8 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend { let mut is_future = false; for &(p, _span) in preds { let p = p.subst(cx.tcx, subst); - if let Some(trait_ref) = p.to_opt_poly_trait_ref() { - if Some(trait_ref.value.def_id()) == cx.tcx.lang_items().future_trait() { + if let Some(trait_pred) = p.to_opt_poly_trait_pred() { + if Some(trait_pred.skip_binder().trait_ref.def_id) == cx.tcx.lang_items().future_trait() { is_future = true; break; } |
