@@ -86,7 +86,7 @@ impl<'a, 'tcx> Iterator for Autoderef<'a, 'tcx> {
86
86
if self . infcx . next_trait_solver ( )
87
87
&& let ty:: Alias ( ..) = ty. kind ( )
88
88
{
89
- let ( normalized_ty, obligations) = self . structurally_normalize ( ty) ?;
89
+ let ( normalized_ty, obligations) = self . structurally_normalize_ty ( ty) ?;
90
90
self . state . obligations . extend ( obligations) ;
91
91
( AutoderefKind :: Builtin , normalized_ty)
92
92
} else {
@@ -166,20 +166,20 @@ impl<'a, 'tcx> Autoderef<'a, 'tcx> {
166
166
}
167
167
168
168
let ( normalized_ty, obligations) =
169
- self . structurally_normalize ( Ty :: new_projection ( tcx, trait_target_def_id, [ ty] ) ) ?;
169
+ self . structurally_normalize_ty ( Ty :: new_projection ( tcx, trait_target_def_id, [ ty] ) ) ?;
170
170
debug ! ( "overloaded_deref_ty({:?}) = ({:?}, {:?})" , ty, normalized_ty, obligations) ;
171
171
self . state . obligations . extend ( obligations) ;
172
172
173
173
Some ( self . infcx . resolve_vars_if_possible ( normalized_ty) )
174
174
}
175
175
176
176
#[ instrument( level = "debug" , skip( self ) , ret) ]
177
- pub fn structurally_normalize (
177
+ pub fn structurally_normalize_ty (
178
178
& self ,
179
179
ty : Ty < ' tcx > ,
180
180
) -> Option < ( Ty < ' tcx > , PredicateObligations < ' tcx > ) > {
181
181
let ocx = ObligationCtxt :: new ( self . infcx ) ;
182
- let Ok ( normalized_ty) = ocx. structurally_normalize (
182
+ let Ok ( normalized_ty) = ocx. structurally_normalize_ty (
183
183
& traits:: ObligationCause :: misc ( self . span , self . body_id ) ,
184
184
self . param_env ,
185
185
ty,
0 commit comments