Use TrapCode::UnreachableCodeReached in trap_unreachable

This commit is contained in:
bjorn3 2020-02-07 21:38:30 +01:00
parent bae0d9bb72
commit e95a300630

View file

@ -65,7 +65,7 @@ pub fn trap_unreachable(
msg: impl AsRef<str>,
) {
codegen_print(fx, msg.as_ref());
fx.bcx.ins().trap(TrapCode::User(!0));
fx.bcx.ins().trap(TrapCode::UnreachableCodeReached);
}
/// Use this when something is unimplemented, but `libcore` or `libstd` requires it to codegen.