Skip to content
/ rustc Public
forked from rust-lang/rust

Commit

Permalink
Rollup merge of rust-lang#72508 - ecstatic-morse:poly-self-ty, r=niko…
Browse files Browse the repository at this point in the history
…matsakis

Make `PolyTraitRef::self_ty` return `Binder<Ty>`

This came up during review of rust-lang#71618. The current implementation is the same as a call to `skip_binder` but harder to audit. Make it preserve binding levels and add a call to `skip_binder` at all use sites so they can be audited as part of rust-lang#72507.
  • Loading branch information
RalfJung committed Jun 6, 2020
2 parents b059c0a + ea06c72 commit 161474b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/future_not_send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
));
}
Expand Down

0 comments on commit 161474b

Please sign in to comment.