mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Add missing core::panic::PanicInfo imports in code snippets (#440)
This commit is contained in:
committed by
GitHub
parent
34f5733114
commit
3372966664
@@ -201,6 +201,8 @@ Compiling for our new target will use Linux conventions (I'm not quite sure why,
|
||||
#![no_std] // don't link the Rust standard library
|
||||
#![no_main] // disable all Rust-level entry points
|
||||
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
/// This function is called on panic.
|
||||
#[panic_implementation]
|
||||
#[no_mangle]
|
||||
|
||||
Reference in New Issue
Block a user