From eb5cd476ba7e71e22b0a856c1e78a3af1b7bbe0a Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 20 Dec 2024 04:28:08 -0800 Subject: [PATCH] Drop #[lang = "eh_personality"] from no-std test --- test_suite/no_std/Cargo.toml | 6 ++++++ test_suite/no_std/src/main.rs | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test_suite/no_std/Cargo.toml b/test_suite/no_std/Cargo.toml index 5bf7eb2d..9c8f6aa5 100644 --- a/test_suite/no_std/Cargo.toml +++ b/test_suite/no_std/Cargo.toml @@ -10,4 +10,10 @@ libc = { version = "0.2", default-features = false } serde = { path = "../../serde", default-features = false } serde_derive = { path = "../../serde_derive" } +[profile.dev] +panic = "abort" + +[profile.release] +panic = "abort" + [workspace] diff --git a/test_suite/no_std/src/main.rs b/test_suite/no_std/src/main.rs index e5338922..71d553e1 100644 --- a/test_suite/no_std/src/main.rs +++ b/test_suite/no_std/src/main.rs @@ -1,5 +1,3 @@ -#![allow(internal_features)] -#![feature(lang_items)] #![no_std] #![no_main] @@ -10,10 +8,6 @@ extern "C" fn main(_argc: c_int, _argv: *const *const u8) -> c_int { 0 } -#[lang = "eh_personality"] -#[no_mangle] -pub extern "C" fn rust_eh_personality() {} - #[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { unsafe {