Skip to content

Commit eb5cd47

Browse files
committed
Drop #[lang = "eh_personality"] from no-std test
1 parent 8478a3b commit eb5cd47

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test_suite/no_std/Cargo.toml

+6
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@ libc = { version = "0.2", default-features = false }
1010
serde = { path = "../../serde", default-features = false }
1111
serde_derive = { path = "../../serde_derive" }
1212

13+
[profile.dev]
14+
panic = "abort"
15+
16+
[profile.release]
17+
panic = "abort"
18+
1319
[workspace]

test_suite/no_std/src/main.rs

-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(internal_features)]
2-
#![feature(lang_items)]
31
#![no_std]
42
#![no_main]
53

@@ -10,10 +8,6 @@ extern "C" fn main(_argc: c_int, _argv: *const *const u8) -> c_int {
108
0
119
}
1210

13-
#[lang = "eh_personality"]
14-
#[no_mangle]
15-
pub extern "C" fn rust_eh_personality() {}
16-
1711
#[panic_handler]
1812
fn panic(_info: &core::panic::PanicInfo) -> ! {
1913
unsafe {

0 commit comments

Comments
 (0)