Skip to content
Myr

Merge pull request #2872 from dtolnay/ehpersonality

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Drop #[lang = "eh_personality"] from no-std test

authored by David Tolnay · committed by GitHub · parents 8478a3b, b9f93f9 · Browse files · 3 files+7 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+7 added−6 removed

  • other:+7 added−6 removed

3 files+7 added−6 removed

modified:.github/workflows/ci.yml+1 added
modified:test_suite/no_std/src/main.rs-6 removed
1#![allow(internal_features)]2#![feature(lang_items)]1#![no_std]2#![no_main]34use core::ffi::c_int;
2 unmodified lines
7extern "C" fn main(_argc: c_int, _argv: *const *const u8) -> c_int {8 09}1013#[lang = "eh_personality"]14#[no_mangle]15pub extern "C" fn rust_eh_personality() {}1611#[panic_handler]12fn panic(_info: &core::panic::PanicInfo) -> ! {13 unsafe {14 libc::abort();
28 unmodified lines
modified:test_suite/no_std/Cargo.toml+6 added
8 unmodified lines
9libc = { version = "0.2", default-features = false }10serde = { path = "../../serde", default-features = false }11serde_derive = { path = "../../serde_derive" }1213[profile.dev]14panic = "abort"1516[profile.release]17panic = "abort"1819[workspace]