From 135d8891f3bfd00539c759aa8e0db2d3b6118d15 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 237aa960..d7b7f486 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -84,7 +84,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 {}