Skip to content

Commit

Permalink
Trying to fix build on Windows/Gnu with suggestion from rust-lang/rus…
Browse files Browse the repository at this point in the history
…t#38281 (comment)

Signed-off-by: Gerd Zellweger <[email protected]>
  • Loading branch information
gz committed Jun 11, 2018
1 parent 8be1fe9 commit a60f2e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/no_std_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}

0 comments on commit a60f2e9

Please sign in to comment.