Skip to content

Commit b46f424

Browse files
committed
Fix circular dependency test to use rustc_std_internal_symbol
1 parent 2489701 commit b46f424

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/run-make/crate-circular-deps-link/a.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![crate_type = "rlib"]
22
#![feature(lang_items)]
33
#![feature(panic_unwind)]
4+
#![feature(rustc_attrs)]
45
#![no_std]
56

67
extern crate panic_unwind;
@@ -10,12 +11,12 @@ pub fn panic_handler(_: &core::panic::PanicInfo) -> ! {
1011
loop {}
1112
}
1213

13-
#[no_mangle]
14+
#[rustc_std_internal_symbol]
1415
extern "C" fn __rust_drop_panic() -> ! {
1516
loop {}
1617
}
1718

18-
#[no_mangle]
19+
#[rustc_std_internal_symbol]
1920
extern "C" fn __rust_foreign_exception() -> ! {
2021
loop {}
2122
}

0 commit comments

Comments
 (0)