Skip to content

Commit a62adb4

Browse files
committed
psx: Updates to panic info for 1.81.0 (~Jun 2024)
`panic_info_message` has been stable since 1.81.0 see https://stackoverflow.com/questions/78900800/trying-to-access-the-panic-info-message-causes-a-mismatched-types-error and rust-lang/rust#115974
1 parent 8cfc8a5 commit a62adb4

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

psx/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
)]
4141
// Used to implement `ImplsAsCStr` trait
4242
#![feature(min_specialization)]
43-
// For the panic handler
44-
#![feature(panic_info_message)]
4543
// For global_asm! on MIPS
4644
#![feature(asm_experimental_arch)]
4745
// For `__start`'s return type

psx/src/panic.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ fn min_panic(info: &core::panic::PanicInfo) {
4444
println!("Panicked at unknown location")
4545
},
4646
}
47-
if let Some(msg) = info.message() {
48-
println!("{}", msg)
49-
}
5047
}
5148

5249
fn normal_panic(info: &core::panic::PanicInfo) {
@@ -70,9 +67,6 @@ fn normal_panic(info: &core::panic::PanicInfo) {
7067
dprintln!(txt, "Panicked at unknown location");
7168
},
7269
}
73-
if let Some(msg) = info.message() {
74-
dprintln!(txt, "{}", msg);
75-
}
7670
fb.draw_sync();
7771
fb.wait_vblank();
7872
fb.swap();

0 commit comments

Comments
 (0)