Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 25b450b

Browse files
alexreaperhulk
authored andcommitted
Update panic handler for the latest Rust (#69)
1 parent 4432fa5 commit 25b450b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![no_std]
2-
#![feature(alloc, allocator_api, const_fn, lang_items, panic_implementation)]
2+
#![feature(alloc, allocator_api, const_fn, lang_items, panic_handler)]
33

44
#[macro_use]
55
extern crate alloc;
@@ -74,7 +74,7 @@ extern "C" {
7474
fn bug_helper() -> !;
7575
}
7676

77-
#[panic_implementation]
77+
#[panic_handler]
7878
fn panic(_info: &PanicInfo) -> ! {
7979
unsafe {
8080
bug_helper();

0 commit comments

Comments
 (0)