diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-05-23 11:12:06 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-06-01 12:18:57 -0700 |
| commit | b4e06b9e8899ed907a57d4ecea9dd1be6896a852 (patch) | |
| tree | df807fd86efb89e56bd0329e31d9b89e9f234fa3 /src/tools/clippy | |
| parent | eaa57cfb712e0e61bbc61d2309c0fa708f4f297b (diff) | |
Call `skip_binder` or `no_bound_vars` before `self_ty`
Diffstat (limited to 'src/tools/clippy')
| -rw-r--r-- | src/tools/clippy/clippy_lints/src/future_not_send.rs | 2 |
1 files changed, 1 insertions, 1 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 0a02aa7533c..17dd3cd5493 100644 --- a/src/tools/clippy/clippy_lints/src/future_not_send.rs +++ b/src/tools/clippy/clippy_lints/src/future_not_send.rs @@ -95,7 +95,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for FutureNotSend { let trait_ref = trait_pred.to_poly_trait_ref(); db.note(&*format!( "`{}` doesn't implement `{}`", - trait_ref.self_ty(), + trait_ref.skip_binder().self_ty(), trait_ref.print_only_trait_path(), )); } |
