From 656760d562057b65a395a1794c68cda51d1e13d1 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Sun, 27 May 2018 14:00:32 -0400 Subject: [PATCH] Remove `eh_personality` lang item See https://github.com/alex/linux-kernel-module-rust/pull/19#issuecomment-392351011 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. --- src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d042d01d..15f2c1f6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -68,9 +68,6 @@ extern "C" { fn bug_helper() -> !; } -#[lang = "eh_personality"] -extern "C" fn eh_personality() {} - #[lang = "panic_fmt"] extern "C" fn panic_fmt() -> ! { unsafe {