about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2021-12-03 10:11:21 -0300
committerSantiago Pastorino <spastorino@gmail.com>2021-12-03 10:11:21 -0300
commit23f752f2788c1df1ed57ea67f618efa903148daf (patch)
tree00070738301c0a3cf62af9962ee7c146c322dc92
parentdd03c0ff3e203aad854004b6c47adcf8c001129d (diff)
downloadrust-23f752f2788c1df1ed57ea67f618efa903148daf.tar.gz
rust-23f752f2788c1df1ed57ea67f618efa903148daf.zip
Revert "Auto merge of #91354 - fee1-dead:const_env, r=spastorino"
This reverts commit 18bb8c61a975fff6424cda831ace5b0404277145, reversing
changes made to d9baa361902b172be716f96619b909f340802dea.
-rw-r--r--clippy_lints/src/future_not_send.rs4
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 a9297adb426..6b2ac985555 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_pred) = p.to_opt_poly_trait_pred() {
-                    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() {
                         is_future = true;
                         break;
                     }