about summary refs log tree commit diff
path: root/tests/ui/allocator/no_std-alloc-error-handler-default.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-06-24 09:04:36 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-06-24 09:06:49 +0000
commit659da5843bd0c176c47ca190d2b1cfaa690ffa09 (patch)
tree4136085f2f50bd74fea802a08669f4085d71ab9c /tests/ui/allocator/no_std-alloc-error-handler-default.rs
parentfcb718b25fbda2bec2255babe212654ba2f4e8c9 (diff)
downloadrust-659da5843bd0c176c47ca190d2b1cfaa690ffa09.tar.gz
rust-659da5843bd0c176c47ca190d2b1cfaa690ffa09.zip
Fix a bunch of missing unwinder related definitions
cg_llvm likely just optimizes out their references for these tests, but
cg_clif doesn't and would thus give a linker error.
Diffstat (limited to 'tests/ui/allocator/no_std-alloc-error-handler-default.rs')
-rw-r--r--tests/ui/allocator/no_std-alloc-error-handler-default.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/allocator/no_std-alloc-error-handler-default.rs b/tests/ui/allocator/no_std-alloc-error-handler-default.rs
index b9289d9fb81..51ecf1a6731 100644
--- a/tests/ui/allocator/no_std-alloc-error-handler-default.rs
+++ b/tests/ui/allocator/no_std-alloc-error-handler-default.rs
@@ -6,12 +6,13 @@
 //@ compile-flags:-C panic=abort
 //@ aux-build:helper.rs
 
-#![feature(rustc_private, lang_items)]
+#![feature(rustc_private, lang_items, panic_unwind)]
 #![no_std]
 #![no_main]
 
 extern crate alloc;
 extern crate libc;
+extern crate unwind; // For _Unwind_Resume
 
 // ARM targets need these symbols
 #[no_mangle]