mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37: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
@@ -45,6 +45,8 @@ The problem is that unit tests are built for the host machine, with the `std` li
|
||||
```rust
|
||||
// in src/main.rs
|
||||
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
#[cfg(not(test))] // only compile when the test flag is not set
|
||||
#[panic_implementation]
|
||||
#[no_mangle]
|
||||
|
||||
Reference in New Issue
Block a user