Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Commit 06c3693

Browse files
author
Martin Larralde
committed
Replace panic_implementation with panic_handler in example
1 parent 7ab33a1 commit 06c3693

File tree

1 file changed

+2
-2
lines changed
  • examples/hello_rust_world/src

1 file changed

+2
-2
lines changed

examples/hello_rust_world/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![allow(dead_code, unused_imports, unused_variables, unused_macros, unused_parens)]
2-
#![feature(lang_items, core_intrinsics, panic_implementation, start, used, const_fn)]
2+
#![feature(lang_items, core_intrinsics, panic_handler, start, used, const_fn)]
33
#![no_std]
44

55
extern crate psp2_sys as psp2;
@@ -14,7 +14,7 @@ use core::panic::PanicInfo;
1414
#[no_mangle]
1515
pub extern "C" fn eh_personality() {}
1616

17-
#[panic_implementation]
17+
#[panic_handler]
1818
#[no_mangle]
1919
fn panic(_info: &PanicInfo) -> ! {
2020
unsafe { intrinsics::abort() }

0 commit comments

Comments
 (0)