diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-06-17 20:24:42 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-06-24 19:44:35 +0000 |
| commit | f5af05b8f7a03a9a1d08fe7faa3c842d585da1dc (patch) | |
| tree | 7bc46417a3dec65a376aaf8adc287ebf7900f295 | |
| parent | b9c0f15486326e127987d79883921a1591405118 (diff) | |
| download | rust-f5af05b8f7a03a9a1d08fe7faa3c842d585da1dc.tar.gz rust-f5af05b8f7a03a9a1d08fe7faa3c842d585da1dc.zip | |
Fix circular dependency test to use rustc_std_internal_symbol
| -rw-r--r-- | tests/run-make/crate-circular-deps-link/a.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/run-make/crate-circular-deps-link/a.rs b/tests/run-make/crate-circular-deps-link/a.rs index a54f429550e..b9a7201e819 100644 --- a/tests/run-make/crate-circular-deps-link/a.rs +++ b/tests/run-make/crate-circular-deps-link/a.rs @@ -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 {} } |
