Remove unnecessary no_mangle and extern "C" from the panic handler

#[panic_handler] handles all linkage related details.
This commit is contained in:
bjorn3
2023-10-03 14:27:23 +02:00
committed by Jeremy Soller
parent c99e582c86
commit 2e689eb5d4
+1 -2
View File
@@ -6,8 +6,7 @@ use crate::{cpu_id, context, interrupt, syscall};
/// Required to handle panics
#[panic_handler]
#[no_mangle]
pub extern "C" fn rust_begin_unwind(info: &PanicInfo) -> ! {
fn rust_begin_unwind(info: &PanicInfo) -> ! {
println!("KERNEL PANIC: {}", info);
unsafe { interrupt::stack_trace(); }