mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Pub and no_mangle are no longer required for panic_handler (#468)
This commit is contained in:
committed by
GitHub
parent
2dd925d34d
commit
6f48a17ba4
@@ -628,8 +628,7 @@ Now that we have a `println` macro, we can use it in our panic function to print
|
||||
|
||||
/// This function is called on panic.
|
||||
#[panic_handler]
|
||||
#[no_mangle]
|
||||
pub fn panic(info: &PanicInfo) -> ! {
|
||||
fn panic(info: &PanicInfo) -> ! {
|
||||
println!("{}", info);
|
||||
loop {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user