Skip to content

Commit b8905fb

Browse files
author
Aleksey Zhidkov
committed
Add README.md and fix compilation issue (rust-lang/rust#38281)
1 parent f1f6b33 commit b8905fb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Source: http://os.phil-opp.com/

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ pub extern "C" fn _Unwind_Resume() -> ! {
2626
}
2727

2828
#[lang = "eh_personality"] extern fn eh_personality() {}
29-
#[lang = "panic_fmt"] extern fn panic_fmt() -> ! { loop{}}
29+
30+
#[lang = "panic_fmt"]
31+
#[no_mangle]
32+
extern fn panic_fmt() -> ! { loop{}}
3033

0 commit comments

Comments
 (0)