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.
Constness
1 parent 113c147 commit 1464dceCopy full SHA for 1464dce
clippy_lints/src/future_not_send.rs
@@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
68
for &(p, _span) in preds {
69
let p = p.subst(cx.tcx, subst);
70
if let Some(trait_ref) = p.to_opt_poly_trait_ref() {
71
- if Some(trait_ref.def_id()) == cx.tcx.lang_items().future_trait() {
+ if Some(trait_ref.value.def_id()) == cx.tcx.lang_items().future_trait() {
72
is_future = true;
73
break;
74
}
0 commit comments