Skip to content

Commit

Permalink
Merge pull request #4218 from tgross35/backport-allow-fn-comparison
Browse files Browse the repository at this point in the history
[0.2] Allow `unpredictable_function_pointer_comparisons` in another place
  • Loading branch information
tgross35 authored Dec 23, 2024
2 parents 3a5f075 + a72002a commit 0ead24f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/bsd/freebsdlike/dragonfly/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,8 @@ cfg_if! {
self.mc_fpregs.hash(state);
}
}
// FIXME(msrv): suggested method was added in 1.85
#[allow(unpredictable_function_pointer_comparisons)]
impl PartialEq for ucontext_t {
fn eq(&self, other: &ucontext_t) -> bool {
self.uc_sigmask == other.uc_sigmask
Expand Down

0 comments on commit 0ead24f

Please sign in to comment.