From 3167cbb6d01e247ca679712fd923c7cfbc45d7fc Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Wed, 19 Mar 2025 04:02:54 +0000 Subject: [PATCH] Temporarily disable the test call to `rust_begin_unwind` Since [1] this symbol is mangled, meaning it is not easy to call directly. A better fix will come in [2] but for now, just disable that portion of the test. [1]: https://github.com/rust-lang/rust/pull/127173 [2]: https://github.com/rust-lang/compiler-builtins/pull/802 --- .../builtins-test-intrinsics/src/main.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/library/compiler-builtins/builtins-test-intrinsics/src/main.rs b/library/compiler-builtins/builtins-test-intrinsics/src/main.rs index e90cfb33dea5..21d0a083c71d 100644 --- a/library/compiler-builtins/builtins-test-intrinsics/src/main.rs +++ b/library/compiler-builtins/builtins-test-intrinsics/src/main.rs @@ -626,13 +626,14 @@ fn run() { something_with_a_dtor(&|| assert_eq!(bb(1), 1)); - extern "C" { - fn rust_begin_unwind(x: usize); - } + // FIXME(#802): This should be re-enabled once a workaround is found. + // extern "C" { + // fn rust_begin_unwind(x: usize); + // } - unsafe { - rust_begin_unwind(0); - } + // unsafe { + // rust_begin_unwind(0); + // } } fn something_with_a_dtor(f: &dyn Fn()) {