]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/sgx/abi/panic.rs
SGX target: change re-entry abort logic
[rust.git] / src / libstd / sys / sgx / abi / panic.rs
index de86394b4b88cdfd8013b57b089988f60567df04..2401476716f4faf3dbef58d1cb0b50828b1f75ca 100644 (file)
@@ -1,4 +1,4 @@
-use super::usercalls::{alloc::UserRef, self};
+use super::usercalls::alloc::UserRef;
 use crate::cmp;
 use crate::io::{self, Write};
 use crate::mem;
@@ -48,9 +48,3 @@ fn flush(&mut self) -> io::Result<()> {
         Ok(())
     }
 }
-
-#[cfg_attr(not(test), no_mangle)]
-pub extern "C" fn panic_msg(msg: &str) -> ! {
-    let _ = SgxPanicOutput::new().map(|mut out| out.write(msg.as_bytes()));
-    usercalls::exit(true)
-}