@@ -21,7 +21,7 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
21
21
let mut impls = Vec :: new ( ) ;
22
22
for trait_def_id in cx. tcx . all_traits ( ) {
23
23
if !cx. cache . effective_visibilities . is_reachable ( cx. tcx , trait_def_id)
24
- || cx. generated_synthetics . get ( & ( ty. 0 , trait_def_id) ) . is_some ( )
24
+ || cx. generated_synthetics . get ( & ( ty. skip_binder ( ) , trait_def_id) ) . is_some ( )
25
25
{
26
26
continue ;
27
27
}
@@ -34,7 +34,7 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
34
34
impl_def_id
35
35
) ;
36
36
let trait_ref = cx. tcx . impl_trait_ref ( impl_def_id) . unwrap ( ) ;
37
- if !matches ! ( trait_ref. 0 . self_ty( ) . kind( ) , ty:: Param ( _) ) {
37
+ if !matches ! ( trait_ref. skip_binder ( ) . self_ty( ) . kind( ) , ty:: Param ( _) ) {
38
38
continue ;
39
39
}
40
40
let infcx = cx. tcx . infer_ctxt ( ) . build ( ) ;
@@ -87,7 +87,7 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
87
87
trait_ref, ty
88
88
) ;
89
89
90
- cx. generated_synthetics . insert ( ( ty. 0 , trait_def_id) ) ;
90
+ cx. generated_synthetics . insert ( ( ty. skip_binder ( ) , trait_def_id) ) ;
91
91
92
92
impls. push ( Item {
93
93
name : None ,
@@ -104,10 +104,10 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
104
104
// the post-inference `trait_ref`, as it's more accurate.
105
105
trait_ : Some ( clean_trait_ref_with_bindings (
106
106
cx,
107
- ty:: Binder :: dummy ( trait_ref. 0 ) ,
107
+ ty:: Binder :: dummy ( trait_ref. skip_binder ( ) ) ,
108
108
ThinVec :: new ( ) ,
109
109
) ) ,
110
- for_ : clean_middle_ty ( ty:: Binder :: dummy ( ty. 0 ) , cx, None ) ,
110
+ for_ : clean_middle_ty ( ty:: Binder :: dummy ( ty. skip_binder ( ) ) , cx, None ) ,
111
111
items : cx
112
112
. tcx
113
113
. associated_items ( impl_def_id)
@@ -116,7 +116,7 @@ impl<'a, 'tcx> BlanketImplFinder<'a, 'tcx> {
116
116
. collect :: < Vec < _ > > ( ) ,
117
117
polarity : ty:: ImplPolarity :: Positive ,
118
118
kind : ImplKind :: Blanket ( Box :: new ( clean_middle_ty (
119
- ty:: Binder :: dummy ( trait_ref. 0 . self_ty ( ) ) ,
119
+ ty:: Binder :: dummy ( trait_ref. skip_binder ( ) . self_ty ( ) ) ,
120
120
cx,
121
121
None ,
122
122
) ) ) ,
0 commit comments