File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ pub fn report_error<'tcx, 'mir>(
290
290
) =>
291
291
{
292
292
ecx. handle_ice ( ) ; // print interpreter backtrace
293
- bug ! ( "This validation error should be impossible in Miri: {}" , ecx. format_error ( e) ) ;
293
+ bug ! ( "This validation error should be impossible in Miri: {}" , format_interp_error ( ecx. tcx . dcx ( ) , e) ) ;
294
294
}
295
295
UndefinedBehavior ( _) => "Undefined Behavior" ,
296
296
ResourceExhaustion ( _) => "resource exhaustion" ,
@@ -304,7 +304,7 @@ pub fn report_error<'tcx, 'mir>(
304
304
) => "post-monomorphization error" ,
305
305
_ => {
306
306
ecx. handle_ice ( ) ; // print interpreter backtrace
307
- bug ! ( "This error should be impossible in Miri: {}" , ecx. format_error ( e) ) ;
307
+ bug ! ( "This error should be impossible in Miri: {}" , format_interp_error ( ecx. tcx . dcx ( ) , e) ) ;
308
308
}
309
309
} ;
310
310
#[ rustfmt:: skip]
@@ -370,7 +370,7 @@ pub fn report_error<'tcx, 'mir>(
370
370
_ => { }
371
371
}
372
372
373
- msg. insert ( 0 , ecx. format_error ( e) ) ;
373
+ msg. insert ( 0 , format_interp_error ( ecx. tcx . dcx ( ) , e) ) ;
374
374
375
375
report_msg (
376
376
DiagLevel :: Error ,
You can’t perform that action at this time.
0 commit comments