Allow fn pointers comparisons lint in library
This commit is contained in:
parent
8ce63576bd
commit
7b06fcf559
1 changed files with 1 additions and 0 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue