Skip to content

Commit ffa9bbe

Browse files
committed
panic errors are actually still possible
1 parent 2b40b17 commit ffa9bbe

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
@@ -217,7 +217,7 @@ 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(_) =>
220+
InterpError::InvalidProgram(_) =>
221221
bug!("This error should be impossible in Miri: {}", e),
222222
_ => e.to_string()
223223
};

0 commit comments

Comments
 (0)