Fix circular dependency test to use rustc_std_internal_symbol

This commit is contained in:
bjorn3 2025-06-17 20:24:42 +00:00
parent b9c0f15486
commit f5af05b8f7

View file

@ -1,6 +1,7 @@
#![crate_type = "rlib"]
#![feature(lang_items)]
#![feature(panic_unwind)]
#![feature(rustc_attrs)]
#![no_std]
extern crate panic_unwind;
@ -10,12 +11,12 @@ pub fn panic_handler(_: &core::panic::PanicInfo) -> ! {
loop {}
}
#[no_mangle]
#[rustc_std_internal_symbol]
extern "C" fn __rust_drop_panic() -> ! {
loop {}
}
#[no_mangle]
#[rustc_std_internal_symbol]
extern "C" fn __rust_foreign_exception() -> ! {
loop {}
}