Replace error by bug macro

This commit is contained in:
Christian Poveda 2019-06-29 22:50:37 -05:00
parent 51793bd318
commit 92c28bfabc

View file

@ -257,7 +257,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpretCx<'mir, 'tcx, M> {
Err(e) => Err(e),
}
}
_ => return err!(Unimplemented(format!("ptr to {:?} cast", dest_layout.ty))),
_ => bug!("invalid MIR: ptr to {:?} cast", dest_layout.ty)
}
}