@@ -85,7 +85,7 @@ use middle::pat_util;
8585use middle:: subst;
8686use middle:: subst:: { Subst , Substs , VecPerParamSpace , ParamSpace } ;
8787use middle:: ty:: { FnSig , VariantInfo } ;
88- use middle:: ty:: { ty_param_bounds_and_ty, ty_param_substs_and_ty } ;
88+ use middle:: ty:: { ty_param_bounds_and_ty} ;
8989use middle:: ty:: { ParamTy , Disr , ExprTyProvider } ;
9090use middle:: ty;
9191use middle:: ty_fold:: TypeFolder ;
@@ -109,6 +109,7 @@ use middle::typeck::{lookup_def_ccx};
109109use middle:: typeck:: no_params;
110110use middle:: typeck:: { require_same_types, vtable_map} ;
111111use middle:: typeck:: { MethodCall , MethodMap } ;
112+ use middle:: typeck:: { TypeAndSubsts } ;
112113use middle:: lang_items:: TypeIdLangItem ;
113114use util:: common:: { block_query, indenter, loop_query} ;
114115use util:: ppaux;
@@ -1791,7 +1792,7 @@ fn check_expr_with_lvalue_pref(fcx: &FnCtxt, expr: &ast::Expr,
17911792pub fn impl_self_ty ( vcx : & VtableContext ,
17921793 span : Span , // (potential) receiver for this impl
17931794 did : ast:: DefId )
1794- -> ty_param_substs_and_ty {
1795+ -> TypeAndSubsts {
17951796 let tcx = vcx. tcx ( ) ;
17961797
17971798 let ity = ty:: lookup_item_type ( tcx , did ) ;
@@ -1805,7 +1806,7 @@ pub fn impl_self_ty(vcx: &VtableContext,
18051806 let substs = subst:: Substs :: new_type ( tps , rps ) ;
18061807 let substd_ty = raw_ty. subst( tcx, & substs) ;
18071808
1808- ty_param_substs_and_ty { substs : substs, ty : substd_ty }
1809+ TypeAndSubsts { substs : substs, ty : substd_ty }
18091810}
18101811
18111812// Only for fields! Returns <none> for methods>
0 commit comments