Call skip_binder or no_bound_vars before self_ty

This commit is contained in:
Dylan MacKenzie 2020-05-23 11:12:06 -07:00
parent fcc0e8f7d4
commit ea06c72fdd

View File

@ -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(),
));
}