Use TrapCode::UnreachableCodeReached in trap_unreachable
This commit is contained in:
parent
bae0d9bb72
commit
e95a300630
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user