From 4096d4a0c87e6404d5f7c73c1cc1b5a5386a1962 Mon Sep 17 00:00:00 2001 From: Urgau Date: Sun, 10 Dec 2023 15:51:06 +0100 Subject: [PATCH] Allow fn pointers comparisons lint in UI tests --- tests/pass/function_pointers.rs | 2 ++ tests/pass/issues/issue-91636.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/pass/function_pointers.rs b/tests/pass/function_pointers.rs index a5c4bc5e0d..7145be334a 100644 --- a/tests/pass/function_pointers.rs +++ b/tests/pass/function_pointers.rs @@ -1,3 +1,5 @@ +#![allow(unpredictable_function_pointer_comparisons)] + use std::mem; trait Answer { diff --git a/tests/pass/issues/issue-91636.rs b/tests/pass/issues/issue-91636.rs index 0037016581..d0cadcd2c7 100644 --- a/tests/pass/issues/issue-91636.rs +++ b/tests/pass/issues/issue-91636.rs @@ -1,3 +1,5 @@ +#![allow(unpredictable_function_pointer_comparisons)] + type BuiltIn = for<'a> fn(&str); struct Function {