diff options
| author | Fenrir <[email protected]> | 2017-07-31 23:23:20 -0600 |
|---|---|---|
| committer | Fenrir <[email protected]> | 2017-07-31 23:23:20 -0600 |
| commit | 5f0fc0c00148c6128ee9354ba7360b386a59bef5 (patch) | |
| tree | 3fe53b38fa6487a03c8938a1132e0e14f273d430 /ctr-std/src/lib.rs | |
| parent | Merge pull request #41 from FenrirWolf/panic-reboot (diff) | |
| download | archived-ctru-rs-5f0fc0c00148c6128ee9354ba7360b386a59bef5.tar.xz archived-ctru-rs-5f0fc0c00148c6128ee9354ba7360b386a59bef5.zip | |
Add unwinding strategy for panics
Diffstat (limited to 'ctr-std/src/lib.rs')
| -rw-r--r-- | ctr-std/src/lib.rs | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/ctr-std/src/lib.rs b/ctr-std/src/lib.rs index 99b77a2..28ab259 100644 --- a/ctr-std/src/lib.rs +++ b/ctr-std/src/lib.rs @@ -26,6 +26,7 @@ #![feature(lang_items)] #![feature(macro_reexport)] #![feature(needs_drop)] +#![feature(needs_panic_runtime)] #![feature(oom)] #![feature(on_unimplemented)] #![feature(optin_builtin_traits)] @@ -45,10 +46,13 @@ #![feature(unicode)] #![feature(unique)] #![feature(untagged_unions)] +#![feature(unwind_attributes)] #![feature(zero_one)] #![allow(non_camel_case_types, dead_code, unused_features)] #![no_std] +#![needs_panic_runtime] + #![cfg_attr(not(stage0), default_lib_allocator)] #![stable(feature = "rust1", since = "1.0.0")] @@ -197,20 +201,3 @@ pub mod rt; pub mod __rand { pub use rand::{thread_rng, ThreadRng, Rng}; } - -// NOTE: These two are "undefined" symbols that LLVM emits but that -// we never actually use -#[doc(hidden)] - -#[stable(feature = "3ds", since = "1.0.0")] -#[no_mangle] -pub unsafe extern "C" fn __aeabi_unwind_cpp_pr0() { - intrinsics::unreachable() -} - -#[stable(feature = "3ds", since = "1.0.0")] -#[doc(hidden)] -#[no_mangle] -pub unsafe extern "C" fn __aeabi_unwind_cpp_pr1() { - intrinsics::unreachable() -} |