Skip to content

Commit e95a300

Browse files
committed
Use TrapCode::UnreachableCodeReached in trap_unreachable
1 parent bae0d9b commit e95a300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub fn trap_unreachable(
6565
msg: impl AsRef<str>,
6666
) {
6767
codegen_print(fx, msg.as_ref());
68-
fx.bcx.ins().trap(TrapCode::User(!0));
68+
fx.bcx.ins().trap(TrapCode::UnreachableCodeReached);
6969
}
7070

7171
/// Use this when something is unimplemented, but `libcore` or `libstd` requires it to codegen.

0 commit comments

Comments
 (0)