Skip to content

Commit b87b0e6

Browse files
committed
tests: Set panic = "abort" profile for AVR test
1 parent c87fb81 commit b87b0e6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tests/avr/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ arduino-hal = { git = "https://github.com/taiki-e/avr-hal.git", branch = "dev",
2323
codegen-units = 1
2424
lto = true
2525
opt-level = "s"
26+
panic = "abort"
2627

2728
[profile.release]
2829
codegen-units = 1
2930
lto = true
3031
opt-level = "s"
32+
panic = "abort"

tests/avr/src/main.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![no_main]
22
#![no_std]
33
#![warn(rust_2018_idioms, single_use_lifetimes, unsafe_op_in_unsafe_fn)]
4-
#![feature(lang_items)]
54
#![feature(panic_info_message)]
65
#![allow(clippy::empty_loop)] // this test crate is #![no_std]
76

@@ -254,9 +253,6 @@ fn panic(info: &core::panic::PanicInfo<'_>) -> ! {
254253

255254
semihosting::exit(1)
256255
}
257-
#[lang = "eh_personality"]
258-
#[no_mangle]
259-
pub extern "C" fn rust_eh_personality() {}
260256

261257
mod semihosting {
262258
use core::fmt;

0 commit comments

Comments
 (0)