@@ -380,7 +380,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
380380 let mut oprnd_t = self . check_expr_with_expectation ( & oprnd, expected_inner) ;
381381
382382 if !oprnd_t. references_error ( ) {
383- oprnd_t = self . structurally_resolved_type ( expr. span , oprnd_t) ;
383+ oprnd_t = self . structurally_resolve_type ( expr. span , oprnd_t) ;
384384 match unop {
385385 hir:: UnOp :: Deref => {
386386 if let Some ( ty) = self . lookup_derefing ( expr, oprnd, oprnd_t) {
@@ -1266,13 +1266,13 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
12661266 ) -> Ty < ' tcx > {
12671267 let rcvr_t = self . check_expr ( & rcvr) ;
12681268 // no need to check for bot/err -- callee does that
1269- let rcvr_t = self . structurally_resolved_type ( rcvr. span , rcvr_t) ;
1269+ let rcvr_t = self . structurally_resolve_type ( rcvr. span , rcvr_t) ;
12701270 let span = segment. ident . span ;
12711271
12721272 let method = match self . lookup_method ( rcvr_t, segment, span, expr, rcvr, args) {
12731273 Ok ( method) => {
12741274 // We could add a "consider `foo::<params>`" suggestion here, but I wasn't able to
1275- // trigger this codepath causing `structurally_resolved_type ` to emit an error.
1275+ // trigger this codepath causing `structurally_resolve_type ` to emit an error.
12761276
12771277 self . write_method_call ( expr. hir_id , method) ;
12781278 Ok ( method)
@@ -2252,7 +2252,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
22522252 ) -> Ty < ' tcx > {
22532253 debug ! ( "check_field(expr: {:?}, base: {:?}, field: {:?})" , expr, base, field) ;
22542254 let base_ty = self . check_expr ( base) ;
2255- let base_ty = self . structurally_resolved_type ( base. span , base_ty) ;
2255+ let base_ty = self . structurally_resolve_type ( base. span , base_ty) ;
22562256 let mut private_candidate = None ;
22572257 let mut autoderef = self . autoderef ( expr. span , base_ty) ;
22582258 while let Some ( ( deref_base_ty, _) ) = autoderef. next ( ) {
@@ -2300,7 +2300,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
23002300 _ => { }
23012301 }
23022302 }
2303- self . structurally_resolved_type ( autoderef. span ( ) , autoderef. final_ty ( false ) ) ;
2303+ self . structurally_resolve_type ( autoderef. span ( ) , autoderef. final_ty ( false ) ) ;
23042304
23052305 if let Some ( ( adjustments, did) ) = private_candidate {
23062306 // (#90483) apply adjustments to avoid ExprUseVisitor from
@@ -2857,7 +2857,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
28572857 } else if idx_t. references_error ( ) {
28582858 idx_t
28592859 } else {
2860- let base_t = self . structurally_resolved_type ( base. span , base_t) ;
2860+ let base_t = self . structurally_resolve_type ( base. span , base_t) ;
28612861 match self . lookup_indexing ( expr, base, base_t, idx, idx_t) {
28622862 Some ( ( index_ty, element_ty) ) => {
28632863 // two-phase not needed because index_ty is never mutable
@@ -3084,7 +3084,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
30843084 // allows them to be inferred based on how they are used later in the
30853085 // function.
30863086 if is_input {
3087- let ty = self . structurally_resolved_type ( expr. span , ty) ;
3087+ let ty = self . structurally_resolve_type ( expr. span , ty) ;
30883088 match * ty. kind ( ) {
30893089 ty:: FnDef ( ..) => {
30903090 let fnptr_ty = self . tcx . mk_fn_ptr ( ty. fn_sig ( self . tcx ) ) ;
@@ -3142,7 +3142,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
31423142 let mut current_container = container;
31433143
31443144 for & field in fields {
3145- let container = self . structurally_resolved_type ( expr. span , current_container) ;
3145+ let container = self . structurally_resolve_type ( expr. span , current_container) ;
31463146
31473147 match container. kind ( ) {
31483148 ty:: Adt ( container_def, substs) if !container_def. is_enum ( ) => {
0 commit comments