Skip to content

Commit 258dab4

Browse files
Urgaugitbot
authored and
gitbot
committed
Allow fn pointers comparisons lint in library
1 parent e0b40eb commit 258dab4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/tests/ptr.rs

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

0 commit comments

Comments
 (0)