Skip to content

Commit 99f4dd9

Browse files
committed
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.
1 parent 149d392 commit 99f4dd9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/fuchsia/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,8 @@ cfg_if! {
13401340
}
13411341
}
13421342

1343+
// FIXME(msrv): suggested method was added in 1.85
1344+
#[allow(unpredictable_function_pointer_comparisons)]
13431345
impl PartialEq for sigevent {
13441346
fn eq(&self, other: &sigevent) -> bool {
13451347
self.sigev_value == other.sigev_value

src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ cfg_if! {
238238
}
239239
}
240240

241+
// FIXME(msrv): suggested method was added in 1.85
242+
#[allow(unpredictable_function_pointer_comparisons)]
241243
impl PartialEq for __c_anonymous_elf64_auxv_union {
242244
fn eq(&self, other: &__c_anonymous_elf64_auxv_union) -> bool {
243245
unsafe {

0 commit comments

Comments
 (0)