Skip to content

Commit 23214cb

Browse files
committed
Allow fn pointers comparisons lint in library
1 parent 595f1b3 commit 23214cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/tests/ptr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ fn test_const_nonnull_new() {
303303
#[test]
304304
#[cfg(unix)] // printf may not be available on other platforms
305305
#[allow(deprecated)] // For SipHasher
306+
#[cfg_attr(not(bootstrap), allow(unpredictable_function_pointer_comparisons))]
306307
pub fn test_variadic_fnptr() {
307308
use core::ffi;
308309
use core::hash::{Hash, SipHasher};

0 commit comments

Comments
 (0)