File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -194,12 +194,12 @@ fn require_c_abi_if_variadic(tcx: TyCtxt,
194
194
195
195
fn require_same_types < ' a , ' tcx > ( ccx : & CrateCtxt < ' a , ' tcx > ,
196
196
origin : TypeOrigin ,
197
- t1 : Ty < ' tcx > ,
198
- t2 : Ty < ' tcx > )
197
+ expected : Ty < ' tcx > ,
198
+ actual : Ty < ' tcx > )
199
199
-> bool {
200
200
ccx. tcx . infer_ctxt ( None , None , Reveal :: NotSpecializable ) . enter ( |infcx| {
201
- if let Err ( err) = infcx. eq_types ( false , origin. clone ( ) , t1 , t2 ) {
202
- infcx. report_mismatched_types ( origin, t1 , t2 , err) ;
201
+ if let Err ( err) = infcx. eq_types ( false , origin. clone ( ) , expected , actual ) {
202
+ infcx. report_mismatched_types ( origin, expected , actual , err) ;
203
203
false
204
204
} else {
205
205
true
@@ -248,8 +248,8 @@ fn check_main_fn_ty(ccx: &CrateCtxt,
248
248
require_same_types (
249
249
ccx,
250
250
TypeOrigin :: MainFunctionType ( main_span) ,
251
- main_t ,
252
- se_ty ) ;
251
+ se_ty ,
252
+ main_t ) ;
253
253
}
254
254
_ => {
255
255
span_bug ! ( main_span,
@@ -303,8 +303,8 @@ fn check_start_fn_ty(ccx: &CrateCtxt,
303
303
require_same_types (
304
304
ccx,
305
305
TypeOrigin :: StartFunctionType ( start_span) ,
306
- start_t ,
307
- se_ty ) ;
306
+ se_ty ,
307
+ start_t ) ;
308
308
}
309
309
_ => {
310
310
span_bug ! ( start_span,
You can’t perform that action at this time.
0 commit comments