We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PolyTraitRef::self_ty
Binder<Ty>
1 parent 215f2d3 commit 69a8a88Copy full SHA for 69a8a88
src/librustc_middle/ty/sty.rs
@@ -765,8 +765,8 @@ impl<'tcx> TraitRef<'tcx> {
765
pub type PolyTraitRef<'tcx> = Binder<TraitRef<'tcx>>;
766
767
impl<'tcx> PolyTraitRef<'tcx> {
768
- pub fn self_ty(&self) -> Ty<'tcx> {
769
- self.skip_binder().self_ty()
+ pub fn self_ty(&self) -> Binder<Ty<'tcx>> {
+ self.map_bound_ref(|tr| tr.self_ty())
770
}
771
772
pub fn def_id(&self) -> DefId {
0 commit comments