Skip to content

Commit 1bd90f8

Browse files
committed
Don't declare test_variadic_fnptr with two conflicting signatures
It is UB for LLVM and results in a compile error for Cranelift
1 parent d1904e5 commit 1bd90f8

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

patches/0022-sysroot-Disable-not-compiling-tests.patch

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,5 @@ index 0000000..46fd999
3030
+
3131
+[dependencies]
3232
+rand = "0.7"
33-
diff --git a/library/core/tests/ptr.rs b/library/core/tests/ptr.rs
34-
index 1a6be3a..42dbd59 100644
35-
--- a/library/core/tests/ptr.rs
36-
+++ b/library/core/tests/ptr.rs
37-
@@ -250,6 +250,7 @@ fn test_unsized_nonnull() {
38-
};
39-
}
40-
41-
+/*
42-
#[test]
43-
#[allow(warnings)]
44-
// Have a symbol for the test below. It doesn’t need to be an actual variadic function, match the
45-
@@ -277,6 +277,7 @@ pub fn test_variadic_fnptr() {
46-
let mut s = SipHasher::new();
47-
assert_eq!(p.hash(&mut s), q.hash(&mut s));
48-
}
49-
+*/
50-
51-
#[test]
52-
fn write_unaligned_drop() {
5333
--
5434
2.21.0 (Apple Git-122)

0 commit comments

Comments
 (0)