Skip to content

Commit 3a68be8

Browse files
committed
Only use feature panic_handler for AIX.
1 parent 24c7eb5 commit 3a68be8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ui/extern-flag/auxiliary/panic_handler.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
#![feature(lang_items, panic_unwind)]
1+
#![feature(lang_items)]
22
#![no_std]
3+
#![cfg_attr(target_os = "aix", feature(panic_unwind))]
34

45
// Since `rustc` generally passes `-nodefaultlibs` to the linker,
56
// Rust programs link necessary system libraries via `#[link()]`

0 commit comments

Comments
 (0)