fmt
This commit is contained in:
parent
31b66251be
commit
48bb2bf4e6
1 changed files with 8 additions and 2 deletions
|
|
@ -285,7 +285,10 @@ pub fn report_error<'tcx, 'mir>(
|
|||
) =>
|
||||
{
|
||||
ecx.handle_ice(); // print interpreter backtrace
|
||||
bug!("This validation error should be impossible in Miri: {}", format_interp_error(ecx.tcx.dcx(), 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 +302,10 @@ pub fn report_error<'tcx, 'mir>(
|
|||
) => "post-monomorphization error",
|
||||
_ => {
|
||||
ecx.handle_ice(); // print interpreter backtrace
|
||||
bug!("This error should be impossible in Miri: {}", format_interp_error(ecx.tcx.dcx(), e));
|
||||
bug!(
|
||||
"This error should be impossible in Miri: {}",
|
||||
format_interp_error(ecx.tcx.dcx(), e)
|
||||
);
|
||||
}
|
||||
};
|
||||
#[rustfmt::skip]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue