@@ -133,7 +133,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
133133 expr : & ' tcx hir:: Expr < ' tcx > ,
134134 method : Result < MethodCallee < ' tcx > , ErrorGuaranteed > ,
135135 args_no_rcvr : & ' tcx [ hir:: Expr < ' tcx > ] ,
136- tuple_arguments : TupleArgumentsFlag ,
137136 expected : Expectation < ' tcx > ,
138137 ) -> Ty < ' tcx > {
139138 let has_error = match method {
@@ -147,11 +146,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
147146 ) ;
148147 let err_output = Ty :: new_error ( self . tcx , guar) ;
149148
150- let err_inputs = match tuple_arguments {
151- DontTupleArguments => err_inputs,
152- TupleArguments => vec ! [ Ty :: new_tup( self . tcx, & err_inputs) ] ,
153- } ;
154-
155149 self . check_argument_types (
156150 sp,
157151 expr,
@@ -160,7 +154,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
160154 NoExpectation ,
161155 args_no_rcvr,
162156 false ,
163- tuple_arguments ,
157+ TupleArgumentsFlag :: DontTupleArguments ,
164158 method. ok ( ) . map ( |method| method. def_id ) ,
165159 ) ;
166160 return err_output;
@@ -175,7 +169,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
175169 expected,
176170 args_no_rcvr,
177171 method. sig . c_variadic ,
178- tuple_arguments ,
172+ TupleArgumentsFlag :: DontTupleArguments ,
179173 Some ( method. def_id ) ,
180174 ) ;
181175
0 commit comments