Skip to content

Commit 4b59a07

Browse files
committed
TMP
1 parent e883c95 commit 4b59a07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

objc-sys/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ macro_rules! generate_linking_tests {
6565
// Get function pointer to make the linker require the
6666
// symbol to be available.
6767
let f: unsafe extern $abi fn($($t),*) $(-> $r)? = crate::$name;
68+
// Workaround for https://github.com/rust-lang/rust/pull/92964
69+
let f: unsafe extern "C" fn() = unsafe { core::mem::transmute(f) };
6870
// Execute side-effect to ensure it is not optimized away.
6971
std::println!("{:p}", f);
7072
}

0 commit comments

Comments
 (0)