about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-11-30 14:21:41 +0100
committerRalf Jung <post@ralfj.de>2019-12-02 09:03:16 +0100
commit9a52543aaebe0cd426debd8ba748d171547ec500 (patch)
tree634b7a34558fdd8d11d5038a3036e06a8e43364d
parent386a2bb3a0cf22c895dfd9ba21f92cde3b47aae0 (diff)
downloadrust-9a52543aaebe0cd426debd8ba748d171547ec500.tar.gz
rust-9a52543aaebe0cd426debd8ba748d171547ec500.zip
Assert terminator is never executed in ConstProp
-rw-r--r--src/librustc_mir/transform/const_prop.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/transform/const_prop.rs b/src/librustc_mir/transform/const_prop.rs
index aa3897efb9e..03c352bbd7d 100644
--- a/src/librustc_mir/transform/const_prop.rs
+++ b/src/librustc_mir/transform/const_prop.rs
@@ -162,7 +162,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine {
         _msg: &rustc::mir::interpret::AssertMessage<'tcx>,
         _unwind: Option<rustc::mir::BasicBlock>,
     ) -> InterpResult<'tcx> {
-        throw_unsup_format!("panics are not supported in ConstProp");
+        bug!("panics terminators are not evaluated in ConstProp");
     }
 
     fn ptr_to_int(