Skip to content

Commit

Permalink
Allow fn pointers comparisons lint in UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Dec 2, 2024
1 parent 80c2e8b commit 4096d4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/pass/function_pointers.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unpredictable_function_pointer_comparisons)]

use std::mem;

trait Answer {
Expand Down
2 changes: 2 additions & 0 deletions tests/pass/issues/issue-91636.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unpredictable_function_pointer_comparisons)]

type BuiltIn = for<'a> fn(&str);

struct Function {
Expand Down

0 comments on commit 4096d4a

Please sign in to comment.