@@ -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:: { self , Ty , TyCtxt , Visibility , ToPredicate } ;
99
99
use rustc:: ty:: adjustment:: { Adjust , Adjustment , AutoBorrow , AutoBorrowMutability } ;
@@ -1692,9 +1692,8 @@ impl<'a, 'gcx, 'tcx> AstConv<'gcx, 'tcx> for FnCtxt<'a, 'gcx, 'tcx> {
1692
1692
1693
1693
fn ty_infer_for_def ( & self ,
1694
1694
ty_param_def : & ty:: TypeParameterDef ,
1695
- substs : & [ Kind < ' tcx > ] ,
1696
1695
span : Span ) -> Ty < ' tcx > {
1697
- self . type_var_for_def ( span, ty_param_def, substs )
1696
+ self . type_var_for_def ( span, ty_param_def)
1698
1697
}
1699
1698
1700
1699
fn projected_ty_from_poly_trait_ref ( & self ,
@@ -4793,7 +4792,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
4793
4792
// Handle Self first, so we can adjust the index to match the AST.
4794
4793
if has_self && i == 0 {
4795
4794
return opt_self_ty. unwrap_or_else ( || {
4796
- self . type_var_for_def ( span, def, substs )
4795
+ self . type_var_for_def ( span, def)
4797
4796
} ) ;
4798
4797
}
4799
4798
i -= has_self as usize ;
@@ -4826,7 +4825,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
4826
4825
// This can also be reached in some error cases:
4827
4826
// We prefer to use inference variables instead of
4828
4827
// TyError to let type inference recover somewhat.
4829
- self . type_var_for_def ( span, def, substs )
4828
+ self . type_var_for_def ( span, def)
4830
4829
}
4831
4830
} ) ;
4832
4831
0 commit comments