From 8e4e76c7694ffac63b0b89d2674d211c33fc0784 Mon Sep 17 00:00:00 2001 From: Joseph Richey Date: Sun, 30 Sep 2018 14:28:29 -0700 Subject: [PATCH] Remove stabilized features (#25) panic_implemenation was renamed to panic_handler: https://github.com/rust-lang/rust/issues/44489#issuecomment-415140224 panic_handler was stablized: https://github.com/rust-lang/rust/pull/51366 `cargo check` now succeeds without warnings --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 901fa777..e0aeacf7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,6 @@ #![feature(asm)] #![feature(nll)] #![feature(const_fn)] -#![feature(panic_implementation)] #![no_std] #![no_main] @@ -233,7 +232,7 @@ fn enable_write_protect_bit() { unsafe { Cr0::update(|cr0| *cr0 |= Cr0Flags::WRITE_PROTECT) }; } -#[panic_implementation] +#[panic_handler] #[no_mangle] pub extern "C" fn panic(info: &PanicInfo) -> ! { use core::fmt::Write;