From 99f4dd920b580ca3d201d948153cffe54158e4b8 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Sat, 7 Dec 2024 02:05:42 +0000 Subject: [PATCH] Allow the `unpredictable_function_pointer_comparisons` where needed This lint was recently added so this change is needed to fix CI. The suggested alternative is to use `ptr::fn_addr_eq` which isn't available until 1.85, so allow the lint here. --- src/fuchsia/mod.rs | 2 ++ src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs index 01ccd21ecc15..7bd8078e43a9 100644 --- a/src/fuchsia/mod.rs +++ b/src/fuchsia/mod.rs @@ -1340,6 +1340,8 @@ cfg_if! { } } + // FIXME(msrv): suggested method was added in 1.85 + #[allow(unpredictable_function_pointer_comparisons)] impl PartialEq for sigevent { fn eq(&self, other: &sigevent) -> bool { self.sigev_value == other.sigev_value diff --git a/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs b/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs index b3ed7684154a..a73766a65c7d 100644 --- a/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs @@ -238,6 +238,8 @@ cfg_if! { } } + // FIXME(msrv): suggested method was added in 1.85 + #[allow(unpredictable_function_pointer_comparisons)] impl PartialEq for __c_anonymous_elf64_auxv_union { fn eq(&self, other: &__c_anonymous_elf64_auxv_union) -> bool { unsafe {