Skip to content

Commit 23f752f

Browse files
committed
Revert "Auto merge of rust-lang#91354 - fee1-dead:const_env, r=spastorino"
This reverts commit 18bb8c6, reversing changes made to d9baa36.
1 parent dd03c0f commit 23f752f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/future_not_send.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
6767
let mut is_future = false;
6868
for &(p, _span) in preds {
6969
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() {
70+
if let Some(trait_ref) = p.to_opt_poly_trait_ref() {
71+
if Some(trait_ref.value.def_id()) == cx.tcx.lang_items().future_trait() {
7272
is_future = true;
7373
break;
7474
}

0 commit comments

Comments
 (0)