]> git.lizzy.rs Git - rust.git/commitdiff
panic errors are actually still possible
authorRalf Jung <post@ralfj.de>
Sun, 1 Dec 2019 09:19:01 +0000 (10:19 +0100)
committerRalf Jung <post@ralfj.de>
Mon, 2 Dec 2019 15:04:31 +0000 (16:04 +0100)
src/eval.rs

index 2796dbd0b9b1362c8815f76eebf1e2b1fff4a779..197cf87ba549b931f907d41d0cd8e33e6296cb05 100644 (file)
@@ -217,7 +217,7 @@ pub fn eval_main<'tcx>(tcx: TyCtxt<'tcx>, main_id: DefId, config: MiriConfig) ->
                 }
                 err_unsup!(NoMirFor(..)) =>
                     format!("{}. Did you set `MIRI_SYSROOT` to a Miri-enabled sysroot? You can prepare one with `cargo miri setup`.", e),
-                InterpError::Panic(_) | InterpError::InvalidProgram(_) =>
+                InterpError::InvalidProgram(_) =>
                     bug!("This error should be impossible in Miri: {}", e),
                 _ => e.to_string()
             };