Skip to content

Commit

Permalink
Allow fn pointers comparisons lint in library
Browse files Browse the repository at this point in the history
  • Loading branch information
Urgau committed Oct 17, 2024
1 parent 7537e84 commit 27e0598
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/tests/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ fn test_const_nonnull_new() {
#[test]
#[cfg(unix)] // printf may not be available on other platforms
#[allow(deprecated)] // For SipHasher
#[cfg_attr(not(bootstrap), allow(unpredictable_function_pointer_comparisons))]
pub fn test_variadic_fnptr() {
use core::ffi;
use core::hash::{Hash, SipHasher};
Expand Down

0 comments on commit 27e0598

Please sign in to comment.