File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 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,
194194
195195fn require_same_types < ' a , ' tcx > ( ccx : & CrateCtxt < ' a , ' tcx > ,
196196 origin : TypeOrigin ,
197- t1 : Ty < ' tcx > ,
198- t2 : Ty < ' tcx > )
197+ expected : Ty < ' tcx > ,
198+ actual : Ty < ' tcx > )
199199 -> bool {
200200 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) ;
203203 false
204204 } else {
205205 true
@@ -248,8 +248,8 @@ fn check_main_fn_ty(ccx: &CrateCtxt,
248248 require_same_types (
249249 ccx,
250250 TypeOrigin :: MainFunctionType ( main_span) ,
251- main_t ,
252- se_ty ) ;
251+ se_ty ,
252+ main_t ) ;
253253 }
254254 _ => {
255255 span_bug ! ( main_span,
@@ -303,8 +303,8 @@ fn check_start_fn_ty(ccx: &CrateCtxt,
303303 require_same_types (
304304 ccx,
305305 TypeOrigin :: StartFunctionType ( start_span) ,
306- start_t ,
307- se_ty ) ;
306+ se_ty ,
307+ start_t ) ;
308308 }
309309 _ => {
310310 span_bug ! ( start_span,
You can’t perform that action at this time.
0 commit comments