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 @@ -290,7 +290,7 @@ pub fn report_error<'tcx, 'mir>(
290290 ) =>
291291 {
292292 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) ) ;
294294 }
295295 UndefinedBehavior ( _) => "Undefined Behavior" ,
296296 ResourceExhaustion ( _) => "resource exhaustion" ,
@@ -304,7 +304,7 @@ pub fn report_error<'tcx, 'mir>(
304304 ) => "post-monomorphization error" ,
305305 _ => {
306306 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) ) ;
308308 }
309309 } ;
310310 #[ rustfmt:: skip]
@@ -370,7 +370,7 @@ pub fn report_error<'tcx, 'mir>(
370370 _ => { }
371371 }
372372
373- msg. insert ( 0 , ecx. format_error ( e) ) ;
373+ msg. insert ( 0 , format_interp_error ( ecx. tcx . dcx ( ) , e) ) ;
374374
375375 report_msg (
376376 DiagLevel :: Error ,
You can’t perform that action at this time.
0 commit comments