Skip to content

Commit 99f1dff

Browse files
committed
Fail in a slightly more organized fashion for now.
1 parent dc181bc commit 99f1dff

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/rt/rust_upcall.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,8 @@ upcall_fail(rust_task *task,
275275
LOG_UPCALL_ENTRY(task);
276276
LOG_ERR(task, upcall, "upcall fail '%s', %s:%" PRIdPTR, expr, file, line);
277277
task->fail(4);
278-
if (getenv("RUST_TRAP_FAILURE")) {
279-
// FIXME: x86-ism.
280-
__asm__("int3");
281-
}
278+
// FIXME: re-implement unwinding.
279+
abort();
282280
}
283281

284282
/**

0 commit comments

Comments
 (0)