From a60f2e912533c7c7af7f4f114a79519a864e870c Mon Sep 17 00:00:00 2001 From: Gerd Zellweger Date: Mon, 11 Jun 2018 11:18:53 -0700 Subject: [PATCH] Trying to fix build on Windows/Gnu with suggestion from https://github.com/rust-lang/rust/issues/38281#issuecomment-266485685 Signed-off-by: Gerd Zellweger --- tests/no_std_build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/no_std_build.rs b/tests/no_std_build.rs index 5607883..631dcc7 100644 --- a/tests/no_std_build.rs +++ b/tests/no_std_build.rs @@ -33,6 +33,7 @@ pub extern "C" fn rust_eh_unwind_resume() {} #[cfg(feature = "nightly")] #[panic_implementation] -fn panic_impl(_info: &PanicInfo) -> ! { +#[no_mangle] +pub fn panic_impl(_info: &PanicInfo) -> ! { loop {} }