Skip to content

Commit 58de55a

Browse files
committed
Mark panic_fmt as no_mangle to work around rust-lang/rust#38281
(cherry picked from commit 081105bbb60e1c76f222a6c34baac4eec0c83846) (cherry picked from commit 1acc1ff5806f2fa101f726644d258eb4e4543540)
1 parent 94d4f8d commit 58de55a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ extern "C" fn eh_personality() {}
8383

8484
#[cfg(not(test))]
8585
#[lang = "panic_fmt"]
86+
#[no_mangle]
8687
extern "C" fn panic_fmt(fmt: core::fmt::Arguments, file: &'static str, line: u32) -> ! {
8788
println!("\n\nPANIC in {} at line {}:", file, line);
8889
println!(" {}", fmt);

0 commit comments

Comments
 (0)