Skip to content

Commit

Permalink
Remove stabilized features (rust-osdev#25)
Browse files Browse the repository at this point in the history
panic_implemenation was renamed to panic_handler:
   rust-lang/rust#44489 (comment)
panic_handler was stablized:
   rust-lang/rust#51366

`cargo check` now succeeds without warnings
  • Loading branch information
josephlr authored and Nickforall committed Dec 17, 2018
1 parent deed7a2 commit 8e4e76c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#![feature(asm)]
#![feature(nll)]
#![feature(const_fn)]
#![feature(panic_implementation)]
#![no_std]
#![no_main]

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8e4e76c

Please sign in to comment.