Skip to content

Commit d2072df

Browse files
committed
TMP
1 parent 6384f37 commit d2072df

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
@@ -62,6 +62,8 @@ macro_rules! generate_linking_tests {
6262
// Get function pointer to make the linker require the
6363
// symbol to be available.
6464
let f: unsafe extern $abi fn($($t),*) $(-> $r)? = crate::$name;
65+
// Workaround for https://github.com/rust-lang/rust/pull/92964
66+
let f: unsafe extern "C" fn() = unsafe { core::mem::transmute(f) };
6567
// Execute side-effect to ensure it is not optimized away.
6668
std::println!("{:p}", f);
6769
}

0 commit comments

Comments
 (0)