mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
make panic_fmt public in posts
This commit is contained in:
@@ -57,7 +57,7 @@ Now we place our root source file in `src/lib.rs`:
|
||||
pub extern fn rust_main() {}
|
||||
|
||||
#[lang = "eh_personality"] extern fn eh_personality() {}
|
||||
#[lang = "panic_fmt"] #[no_mangle] extern fn panic_fmt() -> ! {loop{}}
|
||||
#[lang = "panic_fmt"] #[no_mangle] pub extern fn panic_fmt() -> ! {loop{}}
|
||||
```
|
||||
Let's break it down:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user