From 1de1c0afc15d033923fbd8e0037cf2dfc2b6baf7 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Mon, 23 Dec 2024 10:43:39 +0000 Subject: [PATCH] Allow `unpredictable_function_pointer_comparisons` in another place Nightly must have just recently updated how this gets checked, we are getting new errors in CI. Allow the lint in another place. --- src/unix/bsd/freebsdlike/dragonfly/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/bsd/freebsdlike/dragonfly/mod.rs b/src/unix/bsd/freebsdlike/dragonfly/mod.rs index 905bee36c99c..7ce4fdf854d3 100644 --- a/src/unix/bsd/freebsdlike/dragonfly/mod.rs +++ b/src/unix/bsd/freebsdlike/dragonfly/mod.rs @@ -864,6 +864,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