@@ -133,7 +133,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
133
133
expr : & ' tcx hir:: Expr < ' tcx > ,
134
134
method : Result < MethodCallee < ' tcx > , ErrorGuaranteed > ,
135
135
args_no_rcvr : & ' tcx [ hir:: Expr < ' tcx > ] ,
136
- tuple_arguments : TupleArgumentsFlag ,
137
136
expected : Expectation < ' tcx > ,
138
137
) -> Ty < ' tcx > {
139
138
let has_error = match method {
@@ -147,11 +146,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
147
146
) ;
148
147
let err_output = Ty :: new_error ( self . tcx , guar) ;
149
148
150
- let err_inputs = match tuple_arguments {
151
- DontTupleArguments => err_inputs,
152
- TupleArguments => vec ! [ Ty :: new_tup( self . tcx, & err_inputs) ] ,
153
- } ;
154
-
155
149
self . check_argument_types (
156
150
sp,
157
151
expr,
@@ -160,7 +154,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
160
154
NoExpectation ,
161
155
args_no_rcvr,
162
156
false ,
163
- tuple_arguments ,
157
+ TupleArgumentsFlag :: DontTupleArguments ,
164
158
method. ok ( ) . map ( |method| method. def_id ) ,
165
159
) ;
166
160
return err_output;
@@ -175,7 +169,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
175
169
expected,
176
170
args_no_rcvr,
177
171
method. sig . c_variadic ,
178
- tuple_arguments ,
172
+ TupleArgumentsFlag :: DontTupleArguments ,
179
173
Some ( method. def_id ) ,
180
174
) ;
181
175
0 commit comments