diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2021-11-29 20:42:16 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2021-11-29 21:19:50 +0800 |
| commit | fdf5322169e85d9c5caaff6359d71f182afa202b (patch) | |
| tree | 27d4a240d2a2c1be14e6a65d74da51eb78bde8fd /src/tools/clippy | |
| parent | f394bb57bb800be024e95e624d96bc698e04dde3 (diff) | |
| download | rust-fdf5322169e85d9c5caaff6359d71f182afa202b.tar.gz rust-fdf5322169e85d9c5caaff6359d71f182afa202b.zip | |
Fix tools
Diffstat (limited to 'src/tools/clippy')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/future_not_send.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/clippy_lints/src/future_not_send.rs b/src/tools/clippy/clippy_lints/src/future_not_send.rs index 6b2ac985555..a9297adb426 100644 --- a/src/tools/clippy/clippy_lints/src/future_not_send.rs +++ b/src/tools/clippy/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_ref) = p.to_opt_poly_trait_ref() { - if Some(trait_ref.value.def_id()) == cx.tcx.lang_items().future_trait() { + 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() { is_future = true; break; } |
