diff options
| author | Urgau <urgau@numericable.fr> | 2023-12-12 13:10:13 +0100 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2024-12-02 18:43:37 +0100 |
| commit | 7b06fcf55900cbc31c58d62793a40e808cefe68e (patch) | |
| tree | 6df0842a87d4913f013c745164660daa3ac2ae9a | |
| parent | 8ce63576bddc95e99b54ebf8ec9da6f52a647ad2 (diff) | |
| download | rust-7b06fcf55900cbc31c58d62793a40e808cefe68e.tar.gz rust-7b06fcf55900cbc31c58d62793a40e808cefe68e.zip | |
Allow fn pointers comparisons lint in library
| -rw-r--r-- | library/core/tests/ptr.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/tests/ptr.rs b/library/core/tests/ptr.rs index 7e9773f2fb9..454b13a7ee3 100644 --- a/library/core/tests/ptr.rs +++ b/library/core/tests/ptr.rs @@ -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}; |
