diff --git a/README.md b/README.md index f185db0..07844d0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@

This is a basic SDK to run custom Rust code on a PlayStation 1. It works with -Rust nightly version equal to or later than `2022-11-04`. Use +Rust nightly version equal to or later than `2024-08-23`. Use [`rustup`](https://www.rust-lang.org/) to install the rust toolchain as follows. ``` diff --git a/psx/src/lib.rs b/psx/src/lib.rs index 6cec8ef..125130a 100644 --- a/psx/src/lib.rs +++ b/psx/src/lib.rs @@ -40,8 +40,6 @@ )] // Used to implement `ImplsAsCStr` trait #![feature(min_specialization)] -// For the panic handler -#![feature(panic_info_message)] // For global_asm! on MIPS #![feature(asm_experimental_arch)] // For `__start`'s return type diff --git a/psx/src/panic.rs b/psx/src/panic.rs index ed3e266..a819963 100644 --- a/psx/src/panic.rs +++ b/psx/src/panic.rs @@ -44,9 +44,7 @@ fn min_panic(info: &core::panic::PanicInfo) { println!("Panicked at unknown location") }, } - if let Some(msg) = info.message() { - println!("{}", msg) - } + println!("{}", info.message()); } fn normal_panic(info: &core::panic::PanicInfo) { @@ -70,9 +68,7 @@ fn normal_panic(info: &core::panic::PanicInfo) { dprintln!(txt, "Panicked at unknown location"); }, } - if let Some(msg) = info.message() { - dprintln!(txt, "{}", msg); - } + dprintln!(txt, "{}", info.message()); fb.draw_sync(); fb.wait_vblank(); fb.swap();