about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-02-25 17:54:01 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-02-25 17:54:01 +0000
commitbe19c03e6966d636ef696e23cc8a60669a2bb19c (patch)
tree5abf6cd7f98fe8791e5900d347c771a1635c7d6f
parent26d0d255ce4da75354dc6c7571bb44aa8279b5aa (diff)
downloadrust-be19c03e6966d636ef696e23cc8a60669a2bb19c.tar.gz
rust-be19c03e6966d636ef696e23cc8a60669a2bb19c.zip
Silence almost all warnings when compiling coretests
-rw-r--r--patches/0022-sysroot-Disable-not-compiling-tests.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/patches/0022-sysroot-Disable-not-compiling-tests.patch b/patches/0022-sysroot-Disable-not-compiling-tests.patch
index 865aa833a5e..4db56fa3bd2 100644
--- a/patches/0022-sysroot-Disable-not-compiling-tests.patch
+++ b/patches/0022-sysroot-Disable-not-compiling-tests.patch
@@ -31,5 +31,14 @@ index 0000000..46fd999
 +[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)]
 --
 2.21.0 (Apple Git-122)