Skip to content

Commit eaa57cf

Browse files
PolyTraitRef::self_ty returns Binder<Ty>
1 parent d3cba25 commit eaa57cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/librustc_middle/ty/sty.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,8 @@ impl<'tcx> TraitRef<'tcx> {
765765
pub type PolyTraitRef<'tcx> = Binder<TraitRef<'tcx>>;
766766

767767
impl<'tcx> PolyTraitRef<'tcx> {
768-
pub fn self_ty(&self) -> Ty<'tcx> {
769-
self.skip_binder().self_ty()
768+
pub fn self_ty(&self) -> Binder<Ty<'tcx>> {
769+
self.map_bound_ref(|tr| tr.self_ty())
770770
}
771771

772772
pub fn def_id(&self) -> DefId {

0 commit comments

Comments
 (0)