@@ -86,7 +86,7 @@ impl<'a, 'tcx> Iterator for Autoderef<'a, 'tcx> {
8686 if self . infcx . next_trait_solver ( )
8787 && let ty:: Alias ( ..) = ty. kind ( )
8888 {
89- let ( normalized_ty, obligations) = self . structurally_normalize ( ty) ?;
89+ let ( normalized_ty, obligations) = self . structurally_normalize_ty ( ty) ?;
9090 self . state . obligations . extend ( obligations) ;
9191 ( AutoderefKind :: Builtin , normalized_ty)
9292 } else {
@@ -166,20 +166,20 @@ impl<'a, 'tcx> Autoderef<'a, 'tcx> {
166166 }
167167
168168 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] ) ) ?;
170170 debug ! ( "overloaded_deref_ty({:?}) = ({:?}, {:?})" , ty, normalized_ty, obligations) ;
171171 self . state . obligations . extend ( obligations) ;
172172
173173 Some ( self . infcx . resolve_vars_if_possible ( normalized_ty) )
174174 }
175175
176176 #[ instrument( level = "debug" , skip( self ) , ret) ]
177- pub fn structurally_normalize (
177+ pub fn structurally_normalize_ty (
178178 & self ,
179179 ty : Ty < ' tcx > ,
180180 ) -> Option < ( Ty < ' tcx > , PredicateObligations < ' tcx > ) > {
181181 let ocx = ObligationCtxt :: new ( self . infcx ) ;
182- let Ok ( normalized_ty) = ocx. structurally_normalize (
182+ let Ok ( normalized_ty) = ocx. structurally_normalize_ty (
183183 & traits:: ObligationCause :: misc ( self . span , self . body_id ) ,
184184 self . param_env ,
185185 ty,
0 commit comments