diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-11-22 02:13:53 +0100 |
|---|---|---|
| committer | Jonas Schievink <jonasschievink@gmail.com> | 2020-11-22 02:13:53 +0100 |
| commit | 1464dcedfbb4e5bb7f88664e2e02e064eeda2a56 (patch) | |
| tree | dfb19048ad75d433f23fd40442cd7e995e857723 | |
| parent | 113c1476c923492ea1427b061458a6ab8faf8df8 (diff) | |
| download | rust-1464dcedfbb4e5bb7f88664e2e02e064eeda2a56.tar.gz rust-1464dcedfbb4e5bb7f88664e2e02e064eeda2a56.zip | |
Thread `Constness` through selection
| -rw-r--r-- | clippy_lints/src/future_not_send.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/future_not_send.rs b/clippy_lints/src/future_not_send.rs index d2a322e1223..f9697afe405 100644 --- a/clippy_lints/src/future_not_send.rs +++ b/clippy_lints/src/future_not_send.rs @@ -68,7 +68,7 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend { 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.def_id()) == cx.tcx.lang_items().future_trait() { + if Some(trait_ref.value.def_id()) == cx.tcx.lang_items().future_trait() { is_future = true; break; } |
