Fix tools
This commit is contained in:
parent
3c8b644d0d
commit
99eeb66e0f
@ -67,8 +67,8 @@ fn check_fn(
|
|||||||
let mut is_future = false;
|
let mut is_future = false;
|
||||||
for &(p, _span) in preds {
|
for &(p, _span) in preds {
|
||||||
let p = p.subst(cx.tcx, subst);
|
let p = p.subst(cx.tcx, subst);
|
||||||
if let Some(trait_ref) = p.to_opt_poly_trait_ref() {
|
if let Some(trait_pred) = p.to_opt_poly_trait_pred() {
|
||||||
if Some(trait_ref.value.def_id()) == cx.tcx.lang_items().future_trait() {
|
if Some(trait_pred.skip_binder().trait_ref.def_id) == cx.tcx.lang_items().future_trait() {
|
||||||
is_future = true;
|
is_future = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user