File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ pub fn report_error<'tcx, 'mir>(
285
285
) =>
286
286
{
287
287
ecx. handle_ice ( ) ; // print interpreter backtrace
288
- bug ! ( "This validation error should be impossible in Miri: {}" , ecx. format_error ( e) ) ;
288
+ bug ! ( "This validation error should be impossible in Miri: {}" , format_interp_error ( ecx. tcx . dcx ( ) , e) ) ;
289
289
}
290
290
UndefinedBehavior ( _) => "Undefined Behavior" ,
291
291
ResourceExhaustion ( _) => "resource exhaustion" ,
@@ -299,7 +299,7 @@ pub fn report_error<'tcx, 'mir>(
299
299
) => "post-monomorphization error" ,
300
300
_ => {
301
301
ecx. handle_ice ( ) ; // print interpreter backtrace
302
- bug ! ( "This error should be impossible in Miri: {}" , ecx. format_error ( e) ) ;
302
+ bug ! ( "This error should be impossible in Miri: {}" , format_interp_error ( ecx. tcx . dcx ( ) , e) ) ;
303
303
}
304
304
} ;
305
305
#[ rustfmt:: skip]
@@ -365,7 +365,7 @@ pub fn report_error<'tcx, 'mir>(
365
365
_ => { }
366
366
}
367
367
368
- msg. insert ( 0 , ecx. format_error ( e) ) ;
368
+ msg. insert ( 0 , format_interp_error ( ecx. tcx . dcx ( ) , e) ) ;
369
369
370
370
report_msg (
371
371
DiagLevel :: Error ,
You can’t perform that action at this time.
0 commit comments