We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd03c0f commit 23f752fCopy full SHA for 23f752f
clippy_lints/src/future_not_send.rs
@@ -67,8 +67,8 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
67
let mut is_future = false;
68
for &(p, _span) in preds {
69
let p = p.subst(cx.tcx, subst);
70
- if let Some(trait_pred) = p.to_opt_poly_trait_pred() {
71
- if Some(trait_pred.skip_binder().trait_ref.def_id) == cx.tcx.lang_items().future_trait() {
+ if let Some(trait_ref) = p.to_opt_poly_trait_ref() {
+ if Some(trait_ref.value.def_id()) == cx.tcx.lang_items().future_trait() {
72
is_future = true;
73
break;
74
}
0 commit comments