From 4ce38163ba22d96bc226293ff10460aadf3c60c6 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 4 Jan 2017 16:13:27 +0100 Subject: [PATCH] Make panic_fmt public to fix private_no_mangle_fns warning (cherry picked from commit 1be2f42791d9fa2b755faacd76348888945f4f61) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 441b2e5f..d5c61c7c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -86,7 +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) -> ! { +pub extern "C" fn panic_fmt(fmt: core::fmt::Arguments, file: &'static str, line: u32) -> ! { println!("\n\nPANIC in {} at line {}:", file, line); println!(" {}", fmt); loop {}