Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit bbc5a67

Browse files
committed
Remove eh_personality lang item
See #19 (comment) for why we can do this - basically, since every crate is compiled with panic=abort (using cargo xbuild), the compiler should not generate any code that needs a personality function.
1 parent e82934d commit bbc5a67

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ extern "C" {
6868
fn bug_helper() -> !;
6969
}
7070

71-
#[lang = "eh_personality"]
72-
extern "C" fn eh_personality() {}
73-
7471
#[lang = "panic_fmt"]
7572
extern "C" fn panic_fmt() -> ! {
7673
unsafe {

0 commit comments

Comments
 (0)