Skip to content

Commit

Permalink
Assert terminator is never executed in ConstProp
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 2, 2019
1 parent 386a2bb commit 9a52543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_mir/transform/const_prop.rs
Expand Up @@ -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(
Expand Down

0 comments on commit 9a52543

Please sign in to comment.