Skip to content

Commit 9a52543

Browse files
committed
Assert terminator is never executed in ConstProp
1 parent 386a2bb commit 9a52543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/const_prop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine {
162162
_msg: &rustc::mir::interpret::AssertMessage<'tcx>,
163163
_unwind: Option<rustc::mir::BasicBlock>,
164164
) -> InterpResult<'tcx> {
165-
throw_unsup_format!("panics are not supported in ConstProp");
165+
bug!("panics terminators are not evaluated in ConstProp");
166166
}
167167

168168
fn ptr_to_int(

0 commit comments

Comments
 (0)