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 | ea06c72fddd6d3b12a5a9f955f80faadac9918e0 (patch) | |
| tree | 74430995363bcf29ab1a334bc789d5acf9213952 | |
| parent | fcc0e8f7d4dda4b505131f68ab8d4a806024e8cd (diff) | |
| download | rust-ea06c72fddd6d3b12a5a9f955f80faadac9918e0.tar.gz rust-ea06c72fddd6d3b12a5a9f955f80faadac9918e0.zip | |
Call `skip_binder` or `no_bound_vars` before `self_ty`
| -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 0a02aa7533c..17dd3cd5493 100644 --- a/clippy_lints/src/future_not_send.rs +++ b/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(), )); } |
