From 14dffaf49ccbf3a481da1641dd79ddb3fc05293e Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Fri, 4 Oct 2024 17:22:49 +0800 Subject: [PATCH] fix panic message --- libsupport_zynq/src/lib.rs | 1 - libsupport_zynq/src/panic.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libsupport_zynq/src/lib.rs b/libsupport_zynq/src/lib.rs index b6ef8fb..04ccc1c 100644 --- a/libsupport_zynq/src/lib.rs +++ b/libsupport_zynq/src/lib.rs @@ -1,7 +1,6 @@ #![no_std] #![feature(alloc_error_handler)] -#![feature(panic_info_message)] #![feature(naked_functions)] pub extern crate alloc; diff --git a/libsupport_zynq/src/panic.rs b/libsupport_zynq/src/panic.rs index 0f9d142..e9e8522 100644 --- a/libsupport_zynq/src/panic.rs +++ b/libsupport_zynq/src/panic.rs @@ -10,7 +10,7 @@ fn panic(info: &core::panic::PanicInfo) -> ! { } else { print!("unknown location"); } - if let Some(message) = info.message() { + if let Some(message) = info.message().as_str() { println!(": {}", message); } else { println!("");