mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Fix panic_fmt arguments: file is a &'static str
(cherry picked from commit e9735738f7)
This commit is contained in:
@@ -84,7 +84,7 @@ extern "C" fn eh_personality() {}
|
|||||||
|
|
||||||
#[cfg(not(test))]
|
#[cfg(not(test))]
|
||||||
#[lang = "panic_fmt"]
|
#[lang = "panic_fmt"]
|
||||||
extern "C" fn panic_fmt(fmt: core::fmt::Arguments, file: &str, line: u32) -> ! {
|
extern "C" fn panic_fmt(fmt: core::fmt::Arguments, file: &'static str, line: u32) -> ! {
|
||||||
println!("\n\nPANIC in {} at line {}:", file, line);
|
println!("\n\nPANIC in {} at line {}:", file, line);
|
||||||
println!(" {}", fmt);
|
println!(" {}", fmt);
|
||||||
loop {}
|
loop {}
|
||||||
|
|||||||
Reference in New Issue
Block a user