Skip to content

Commit 848c266

Browse files
committed
some error classes should be impossible
1 parent fd619ff commit 848c266

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/eval.rs

+2
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ pub fn eval_main<'tcx>(tcx: TyCtxt<'tcx>, main_id: DefId, config: MiriConfig) ->
217217
}
218218
err_unsup!(NoMirFor(..)) =>
219219
format!("{}. Did you set `MIRI_SYSROOT` to a Miri-enabled sysroot? You can prepare one with `cargo miri setup`.", e),
220+
InterpError::Panic(_) | InterpError::InvalidProgram(_) =>
221+
bug!("This error should be impossible in Miri: {}", e),
220222
_ => e.to_string()
221223
};
222224
e.print_backtrace();

0 commit comments

Comments
 (0)