miri/diagnostics: don't forget to print_backtrace when ICEing on unexpected errors
then also use the new helper in a few other places
This commit is contained in:
@@ -378,7 +378,8 @@ pub fn intern_const_alloc_recursive<
|
||||
ecx.tcx.sess.delay_span_bug(
|
||||
ecx.tcx.span,
|
||||
format!(
|
||||
"error during interning should later cause validation failure: {error:?}"
|
||||
"error during interning should later cause validation failure: {}",
|
||||
ecx.format_error(error),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user