]> git.lizzy.rs Git - rust.git/blob - patches/0022-sysroot-Disable-not-compiling-tests.patch
Sync from rust 31535841701e0bf7ef33998024376f2cedd8b3e3
[rust.git] / patches / 0022-sysroot-Disable-not-compiling-tests.patch
1 From f6befc4bb51d84f5f1cf35938a168c953d421350 Mon Sep 17 00:00:00 2001
2 From: bjorn3 <bjorn3@users.noreply.github.com>
3 Date: Sun, 24 Nov 2019 15:10:23 +0100
4 Subject: [PATCH] [core] Disable not compiling tests
5
6 ---
7  library/core/tests/Cargo.toml         | 8 ++++++++
8  library/core/tests/num/flt2dec/mod.rs | 1 -
9  library/core/tests/num/int_macros.rs  | 2 ++
10  library/core/tests/num/uint_macros.rs | 2 ++
11  library/core/tests/ptr.rs             | 2 ++
12  library/core/tests/slice.rs           | 2 ++
13  6 files changed, 16 insertions(+), 1 deletion(-)
14  create mode 100644 library/core/tests/Cargo.toml
15
16 diff --git a/library/core/tests/Cargo.toml b/library/core/tests/Cargo.toml
17 new file mode 100644
18 index 0000000..46fd999
19 --- /dev/null
20 +++ b/library/core/tests/Cargo.toml
21 @@ -0,0 +1,11 @@
22 +[package]
23 +name = "core"
24 +version = "0.0.0"
25 +edition = "2021"
26 +
27 +[lib]
28 +name = "coretests"
29 +path = "lib.rs"
30 +
31 +[dependencies]
32 +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() {
53 --
54 2.21.0 (Apple Git-122)