Skip to content

Commit

Permalink
Mark panic_fmt as no_mangle to work around rust-lang/rust#38281
Browse files Browse the repository at this point in the history
(cherry picked from commit 081105bbb60e1c76f222a6c34baac4eec0c83846)
(cherry picked from commit 1acc1ff5806f2fa101f726644d258eb4e4543540)
  • Loading branch information
phil-opp committed Jan 4, 2017
1 parent 94d4f8d commit 58de55a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,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);
Expand Down

0 comments on commit 58de55a

Please sign in to comment.