Fix circular dependency test to use rustc_std_internal_symbol
This commit is contained in:
parent
b9c0f15486
commit
f5af05b8f7
1 changed files with 3 additions and 2 deletions
|
|
@ -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 {}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue