Avoid a direct function-to-integer cast in a ZJIT test. (#18014)

Rust 1.93 added a warn-by-default lint for casting function items directly to integer types.
This commit is contained in:
Kevin Menard authored and GitHub committed 2026-07-22 21:15:57 +00:00
1 parent 9438d7fd1e
commit 024f201f76
1 file changed
+1 -1
Notes: git 2026-07-22 21:16:26 +00:00
Merged-By: tenderlove <aaron.patterson@gmail.com>
+1 -1
View File
@@ -5157,7 +5157,7 @@ mod signal_profiler {
let mut handler: libc::sigaction = unsafe { std::mem::zeroed() };
assert_eq!(unsafe { libc::sigemptyset(&mut handler.sa_mask) }, 0, "sigemptyset failed");
handler.sa_sigaction = sample_profile_frames as libc::sighandler_t;
handler.sa_sigaction = sample_profile_frames as *const () as libc::sighandler_t;
handler.sa_flags = libc::SA_RESTART;
let mut old_sigprof: libc::sigaction = unsafe { std::mem::zeroed() };