We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71042b4 commit 24c7eb5Copy full SHA for 24c7eb5
tests/ui/extern-flag/auxiliary/panic_handler.rs
@@ -1,4 +1,4 @@
1
-#![feature(lang_items)]
+#![feature(lang_items, panic_unwind)]
2
#![no_std]
3
4
// Since `rustc` generally passes `-nodefaultlibs` to the linker,
@@ -10,6 +10,12 @@
10
#[cfg(not(all(windows, target_env = "msvc")))]
11
extern crate libc;
12
13
+// Since crate `unwind` is a dependency of crate `std`, and we are using
14
+// `#![no_std]`, `libunwind` is not included in the link command on AIX
15
+// by default. We need to include crate `unwind` manually.
16
+#[cfg(target_os = "aix")]
17
+extern crate unwind;
18
+
19
#[panic_handler]
20
pub fn begin_panic_handler(_info: &core::panic::PanicInfo<'_>) -> ! {
21
loop {}
0 commit comments