about summary refs log tree commit diff
path: root/src/libcore/lib.rs
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-05-06 01:02:05 +0800
committerkennytm <kennytm@gmail.com>2018-05-06 02:34:07 +0800
commit02f6a0335f99378b2e7d630e00aabdeb57a5bd25 (patch)
treee48a47269b8579988639f1774341b756814ff6ab /src/libcore/lib.rs
parentf24915b67fafe33e87e685d884ff63389b6967cb (diff)
downloadrust-02f6a0335f99378b2e7d630e00aabdeb57a5bd25.tar.gz
rust-02f6a0335f99378b2e7d630e00aabdeb57a5bd25.zip
Some final touches to ensure `./x.py test --stage 0 src/lib*` works
Diffstat (limited to 'src/libcore/lib.rs')
-rw-r--r--src/libcore/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs
index 04dd42583d4..37f9dcc7e32 100644
--- a/src/libcore/lib.rs
+++ b/src/libcore/lib.rs
@@ -50,6 +50,7 @@
 
 // Since libcore defines many fundamental lang items, all tests live in a
 // separate crate, libcoretest, to avoid bizarre issues.
+#![cfg(not(test))]
 
 #![stable(feature = "core", since = "1.6.0")]
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",