about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorThe Miri Conjob Bot <miri@cron.bot>2024-02-11 05:03:52 +0000
committerThe Miri Conjob Bot <miri@cron.bot>2024-02-11 05:03:52 +0000
commit31b66251bea1990647792d680b2a187cdf4aee62 (patch)
tree8cc247e867521ecc6909b7bfef8bd910f4a1c82d /src/tools
parent0913e227d3eb1eaa691191b4e13fb7eb2ee883fa (diff)
parent4ac90e286bd49663f6f29130df33fa17576b2765 (diff)
downloadrust-31b66251bea1990647792d680b2a187cdf4aee62.tar.gz
rust-31b66251bea1990647792d680b2a187cdf4aee62.zip
Merge from rustc
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/miri/src/diagnostics.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/miri/src/diagnostics.rs b/src/tools/miri/src/diagnostics.rs
index cad85258f50..03f0bf9f327 100644
--- a/src/tools/miri/src/diagnostics.rs
+++ b/src/tools/miri/src/diagnostics.rs
@@ -285,7 +285,7 @@ pub fn report_error<'tcx, 'mir>(
                 ) =>
             {
                 ecx.handle_ice(); // print interpreter backtrace
-                bug!("This validation error should be impossible in Miri: {}", ecx.format_error(e));
+                bug!("This validation error should be impossible in Miri: {}", format_interp_error(ecx.tcx.dcx(), e));
             }
             UndefinedBehavior(_) => "Undefined Behavior",
             ResourceExhaustion(_) => "resource exhaustion",
@@ -299,7 +299,7 @@ pub fn report_error<'tcx, 'mir>(
             ) => "post-monomorphization error",
             _ => {
                 ecx.handle_ice(); // print interpreter backtrace
-                bug!("This error should be impossible in Miri: {}", ecx.format_error(e));
+                bug!("This error should be impossible in Miri: {}", format_interp_error(ecx.tcx.dcx(), e));
             }
         };
         #[rustfmt::skip]
@@ -365,7 +365,7 @@ pub fn report_error<'tcx, 'mir>(
         _ => {}
     }
 
-    msg.insert(0, ecx.format_error(e));
+    msg.insert(0, format_interp_error(ecx.tcx.dcx(), e));
 
     report_msg(
         DiagLevel::Error,