From 669333b44941b278c829ae9d7fa02b6e776e4423 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 --- rost_bootloader/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rost_bootloader/src/main.rs b/rost_bootloader/src/main.rs index bd64928..3ce161a 100644 --- a/rost_bootloader/src/main.rs +++ b/rost_bootloader/src/main.rs @@ -5,7 +5,6 @@ #![feature(asm)] #![feature(nll)] #![feature(const_fn)] -#![feature(panic_implementation)] #![no_std] #![no_main] @@ -214,7 +213,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;