Transition the code to Rust 2018

This commit is contained in:
Philipp Oppermann
2018-11-18 13:44:21 +01:00
parent 5091491a1f
commit 6e5ebc4bd9
10 changed files with 16 additions and 48 deletions

View File

@@ -2,12 +2,10 @@
#![cfg_attr(not(test), no_main)] // disable all Rust-level entry points
#![cfg_attr(test, allow(dead_code, unused_macros, unused_imports))]
#[macro_use]
extern crate blog_os;
extern crate x86_64;
use core::panic::PanicInfo;
use blog_os::println;
/// This function is the entry point, since the linker looks for a function
/// named `_start` by default.
#[cfg(not(test))]