Skip to content

Commit 2cba42b

Browse files
committed
panic errors are actually still possible
1 parent 636961c commit 2cba42b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eval.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub fn eval_main<'tcx>(tcx: TyCtxt<'tcx>, main_id: DefId, config: MiriConfig) ->
203203
InterpError::Exit(code) => return Some(code.into()),
204204
err_unsup!(NoMirFor(..)) =>
205205
format!("{}. Did you set `MIRI_SYSROOT` to a Miri-enabled sysroot? You can prepare one with `cargo miri setup`.", e),
206-
InterpError::Panic(_) | InterpError::InvalidProgram(_) =>
206+
InterpError::InvalidProgram(_) =>
207207
bug!("This error should be impossible in Miri: {}", e),
208208
_ => e.to_string()
209209
};

0 commit comments

Comments
 (0)