Don't declare test_variadic_fnptr with two conflicting signatures
It is UB for LLVM and results in a compile error for Cranelift
This commit is contained in:
parent
d1904e5855
commit
1bd90f8644
1 changed files with 0 additions and 20 deletions
|
@ -30,25 +30,5 @@ index 0000000..46fd999
|
|||
+
|
||||
+[dependencies]
|
||||
+rand = "0.7"
|
||||
diff --git a/library/core/tests/ptr.rs b/library/core/tests/ptr.rs
|
||||
index 1a6be3a..42dbd59 100644
|
||||
--- a/library/core/tests/ptr.rs
|
||||
+++ b/library/core/tests/ptr.rs
|
||||
@@ -250,6 +250,7 @@ fn test_unsized_nonnull() {
|
||||
};
|
||||
}
|
||||
|
||||
+/*
|
||||
#[test]
|
||||
#[allow(warnings)]
|
||||
// Have a symbol for the test below. It doesn’t need to be an actual variadic function, match the
|
||||
@@ -277,6 +277,7 @@ pub fn test_variadic_fnptr() {
|
||||
let mut s = SipHasher::new();
|
||||
assert_eq!(p.hash(&mut s), q.hash(&mut s));
|
||||
}
|
||||
+*/
|
||||
|
||||
#[test]
|
||||
fn write_unaligned_drop() {
|
||||
--
|
||||
2.21.0 (Apple Git-122)
|
||||
|
|
Loading…
Add table
Reference in a new issue