We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30e792e commit 633d416Copy full SHA for 633d416
luma_runtime/src/lib.rs
@@ -7,11 +7,14 @@
7
#![no_std]
8
#![feature(asm_experimental_arch, lang_items, alloc_error_handler)]
9
10
+extern crate alloc;
11
+
12
use core::arch::global_asm;
13
use core::{alloc::Layout, panic::PanicInfo};
14
use linked_list_allocator::LockedHeap;
15
#[allow(unused_imports)]
16
use luma_core::cache::*;
17
+use luma_core::println;
18
19
// Import linker symbols for allocator initialization.
20
extern "C" {
@@ -66,7 +69,8 @@ impl Termination for () {}
66
69
/// This function is called on panic.
67
70
#[cfg_attr(not(test), panic_handler)]
68
71
#[no_mangle]
-fn panic(_info: &PanicInfo) -> ! {
72
+fn panic(info: &PanicInfo) -> ! {
73
+ println!("{}", info);
74
loop {}
75
}
76
0 commit comments