Skip to content

Commit

Permalink
Allow the unpredictable_function_pointer_comparisons where needed
Browse files Browse the repository at this point in the history
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.

(backport <rust-lang#4177>)
(cherry picked from commit 99f4dd9)
  • Loading branch information
tgross35 committed Dec 9, 2024
1 parent 74d02e8 commit 1645df8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fuchsia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/x86_64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1645df8

Please sign in to comment.