2019-10-06 15:26:14 +00:00
|
|
|
//! Unwinding for *hermit* target.
|
|
|
|
//!
|
|
|
|
//! Right now we don't support this, so this is just stubs.
|
|
|
|
|
|
|
|
use alloc::boxed::Box;
|
|
|
|
use core::any::Any;
|
|
|
|
|
|
|
|
pub unsafe fn cleanup(_ptr: *mut u8) -> Box<dyn Any + Send> {
|
2019-12-22 17:42:04 -05:00
|
|
|
extern "C" {
|
|
|
|
pub fn __rust_abort() -> !;
|
|
|
|
}
|
2019-10-06 15:26:14 +00:00
|
|
|
__rust_abort();
|
|
|
|
}
|
|
|
|
|
|
|
|
pub unsafe fn panic(_data: Box<dyn Any + Send>) -> u32 {
|
2019-12-22 17:42:04 -05:00
|
|
|
extern "C" {
|
|
|
|
pub fn __rust_abort() -> !;
|
|
|
|
}
|
2019-10-06 15:26:14 +00:00
|
|
|
__rust_abort();
|
|
|
|
}
|