]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_codegen_gcc/patches/0022-core-Disable-not-compiling-tests.patch
New upstream version 1.70.0+dfsg1
[rustc.git] / compiler / rustc_codegen_gcc / patches / 0022-core-Disable-not-compiling-tests.patch
CommitLineData
c295e0f8
XL
1From f6befc4bb51d84f5f1cf35938a168c953d421350 Mon Sep 17 00:00:00 2001
2From: bjorn3 <bjorn3@users.noreply.github.com>
3Date: Sun, 24 Nov 2019 15:10:23 +0100
4Subject: [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
16diff --git a/library/core/tests/Cargo.toml b/library/core/tests/Cargo.toml
17new file mode 100644
18index 0000000..46fd999
19--- /dev/null
20+++ b/library/core/tests/Cargo.toml
353b0b11 21@@ -0,0 +1,12 @@
c295e0f8
XL
22+[package]
23+name = "core"
24+version = "0.0.0"
5e7ed085 25+edition = "2021"
c295e0f8
XL
26+
27+[lib]
28+name = "coretests"
29+path = "lib.rs"
353b0b11
FG
30+
31+[dependencies]
32+rand = { version = "0.8.5", default-features = false }
33+rand_xorshift = { version = "0.3.0", default-features = false }
34diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs
35index 42a26ae..5ac1042 100644
36--- a/library/core/tests/lib.rs
37+++ b/library/core/tests/lib.rs
38@@ -1,3 +1,4 @@
39+#![cfg(test)]
40 #![feature(alloc_layout_extra)]
41 #![feature(array_chunks)]
42 #![feature(array_methods)]
c295e0f8
XL
43--
442.21.0 (Apple Git-122)