about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/run-make/crate-circular-deps-link/a.rs5
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 {}
 }