Make panic_fmt public to fix private_no_mangle_fns warning

(cherry picked from commit 1be2f42791)
This commit is contained in:
Philipp Oppermann
2017-01-04 16:13:27 +01:00
parent 58de55a2d4
commit 135d8891f3

View File

@@ -84,7 +84,7 @@ extern "C" fn eh_personality() {}
#[cfg(not(test))] #[cfg(not(test))]
#[lang = "panic_fmt"] #[lang = "panic_fmt"]
#[no_mangle] #[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!("\n\nPANIC in {} at line {}:", file, line);
println!(" {}", fmt); println!(" {}", fmt);
loop {} loop {}