2020-05-10 09:54:30 -05:00
|
|
|
From f6befc4bb51d84f5f1cf35938a168c953d421350 Mon Sep 17 00:00:00 2001
|
|
|
|
From: bjorn3 <bjorn3@users.noreply.github.com>
|
|
|
|
Date: Sun, 24 Nov 2019 15:10:23 +0100
|
|
|
|
Subject: [PATCH] [core] Disable not compiling tests
|
|
|
|
|
|
|
|
---
|
|
|
|
library/core/tests/Cargo.toml | 8 ++++++++
|
|
|
|
library/core/tests/num/flt2dec/mod.rs | 1 -
|
|
|
|
library/core/tests/num/int_macros.rs | 2 ++
|
|
|
|
library/core/tests/num/uint_macros.rs | 2 ++
|
|
|
|
library/core/tests/ptr.rs | 2 ++
|
|
|
|
library/core/tests/slice.rs | 2 ++
|
|
|
|
6 files changed, 16 insertions(+), 1 deletion(-)
|
|
|
|
create mode 100644 library/core/tests/Cargo.toml
|
|
|
|
|
|
|
|
diff --git a/library/core/tests/Cargo.toml b/library/core/tests/Cargo.toml
|
|
|
|
new file mode 100644
|
|
|
|
index 0000000..46fd999
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/library/core/tests/Cargo.toml
|
2023-03-04 13:26:00 -06:00
|
|
|
@@ -0,0 +1,12 @@
|
2020-05-10 09:54:30 -05:00
|
|
|
+[package]
|
|
|
|
+name = "core"
|
|
|
|
+version = "0.0.0"
|
2022-02-01 09:46:48 -06:00
|
|
|
+edition = "2021"
|
2020-05-10 09:54:30 -05:00
|
|
|
+
|
|
|
|
+[lib]
|
|
|
|
+name = "coretests"
|
|
|
|
+path = "lib.rs"
|
2023-03-04 13:26:00 -06:00
|
|
|
+
|
|
|
|
+[dependencies]
|
|
|
|
+rand = { version = "0.8.5", default-features = false }
|
|
|
|
+rand_xorshift = { version = "0.3.0", default-features = false }
|
|
|
|
diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs
|
|
|
|
index 42a26ae..5ac1042 100644
|
|
|
|
--- a/library/core/tests/lib.rs
|
|
|
|
+++ b/library/core/tests/lib.rs
|
|
|
|
@@ -1,3 +1,4 @@
|
|
|
|
+#![cfg(test)]
|
|
|
|
#![feature(alloc_layout_extra)]
|
|
|
|
#![feature(array_chunks)]
|
|
|
|
#![feature(array_methods)]
|
2020-05-10 09:54:30 -05:00
|
|
|
--
|
|
|
|
2.21.0 (Apple Git-122)
|