Skip to content
Permalink
Browse files

Assert terminator is never executed in ConstProp

  • Loading branch information
RalfJung committed Nov 30, 2019
1 parent 386a2bb commit 9a52543aaebe0cd426debd8ba748d171547ec500
Showing with 1 addition and 1 deletion.
  1. +1 −1 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(

0 comments on commit 9a52543

Please sign in to comment.
You can’t perform that action at this time.