From 14b3e630129a3c89020e79bf7f0f1e60f6a6e93a Mon Sep 17 00:00:00 2001 From: Urgau Date: Thu, 19 Dec 2024 22:33:49 +0100 Subject: Allow `unpredictable_function_pointer_comparisons` lint in more places --- tests/ui/nullable-pointer-iotareduction.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/ui/nullable-pointer-iotareduction.rs') diff --git a/tests/ui/nullable-pointer-iotareduction.rs b/tests/ui/nullable-pointer-iotareduction.rs index fa837dab51b..1b73164c9fc 100644 --- a/tests/ui/nullable-pointer-iotareduction.rs +++ b/tests/ui/nullable-pointer-iotareduction.rs @@ -8,6 +8,8 @@ // trying to get assert failure messages that at least identify which case // failed. +#![allow(unpredictable_function_pointer_comparisons)] + enum E { Thing(isize, T), #[allow(dead_code)] Nothing((), ((), ()), [i8; 0]) } impl E { fn is_none(&self) -> bool { -- cgit 1.4.1-3-g733a5