mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Mark panic_fmt as no_mangle to work around rust-lang/rust#38281 (#262)
This commit is contained in:
committed by
GitHub
parent
f4ff2b0000
commit
c5dd983949
@@ -86,6 +86,7 @@ extern "C" fn eh_personality() {}
|
||||
|
||||
#[cfg(not(test))]
|
||||
#[lang = "panic_fmt"]
|
||||
#[no_mangle]
|
||||
extern "C" fn panic_fmt(fmt: core::fmt::Arguments, file: &'static str, line: u32) -> ! {
|
||||
println!("\n\nPANIC in {} at line {}:", file, line);
|
||||
println!(" {}", fmt);
|
||||
|
||||
Reference in New Issue
Block a user