@@ -93,7 +93,7 @@ use rustc::infer::{self, InferCtxt, InferOk, RegionVariableOrigin};
93
93
use rustc:: infer:: anon_types:: AnonTypeDecl ;
94
94
use rustc:: infer:: type_variable:: { TypeVariableOrigin } ;
95
95
use rustc:: middle:: region;
96
- use rustc:: ty:: subst:: { Kind , Subst , Substs } ;
96
+ use rustc:: ty:: subst:: { Subst , Substs } ;
97
97
use rustc:: traits:: { self , FulfillmentContext , ObligationCause , ObligationCauseCode } ;
98
98
use rustc:: ty:: { ParamTy , LvaluePreference , NoPreference , PreferMutLvalue } ;
99
99
use rustc:: ty:: { self , Ty , TyCtxt , Visibility , ToPredicate } ;
@@ -1666,9 +1666,8 @@ impl<'a, 'gcx, 'tcx> AstConv<'gcx, 'tcx> for FnCtxt<'a, 'gcx, 'tcx> {
1666
1666
1667
1667
fn ty_infer_for_def ( & self ,
1668
1668
ty_param_def : & ty:: TypeParameterDef ,
1669
- substs : & [ Kind < ' tcx > ] ,
1670
1669
span : Span ) -> Ty < ' tcx > {
1671
- self . type_var_for_def ( span, ty_param_def, substs )
1670
+ self . type_var_for_def ( span, ty_param_def)
1672
1671
}
1673
1672
1674
1673
fn projected_ty_from_poly_trait_ref ( & self ,
@@ -4736,7 +4735,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
4736
4735
// Handle Self first, so we can adjust the index to match the AST.
4737
4736
if has_self && i == 0 {
4738
4737
return opt_self_ty. unwrap_or_else ( || {
4739
- self . type_var_for_def ( span, def, substs )
4738
+ self . type_var_for_def ( span, def)
4740
4739
} ) ;
4741
4740
}
4742
4741
i -= has_self as usize ;
@@ -4769,7 +4768,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
4769
4768
// This can also be reached in some error cases:
4770
4769
// We prefer to use inference variables instead of
4771
4770
// TyError to let type inference recover somewhat.
4772
- self . type_var_for_def ( span, def, substs )
4771
+ self . type_var_for_def ( span, def)
4773
4772
}
4774
4773
} ) ;
4775
4774
0 commit comments