about summary refs log tree commit diff
path: root/src/libtest
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2017-08-19 16:54:17 -0700
committerTamir Duberstein <tamird@gmail.com>2017-08-25 16:18:21 -0400
commitb3f50caee0e2f2f4d44e1c83bf73a112c2a398b1 (patch)
treee66b07e4e48f0969e02f1e95f99c755b22d2c0d4 /src/libtest
parent0463566f27dfc5979b5b12eb7cea670a4e3f991c (diff)
downloadrust-b3f50caee0e2f2f4d44e1c83bf73a112c2a398b1.tar.gz
rust-b3f50caee0e2f2f4d44e1c83bf73a112c2a398b1.zip
*: remove crate_{name,type} attributes
Fixes #41701.
Diffstat (limited to 'src/libtest')
-rw-r--r--src/libtest/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs
index 5e34688f8cb..652bfa82b5c 100644
--- a/src/libtest/lib.rs
+++ b/src/libtest/lib.rs
@@ -23,10 +23,11 @@
 // running tests while providing a base that other test frameworks may
 // build off of.
 
+// NB: this is also specified in this crate's Cargo.toml, but libsyntax contains logic specific to
+// this crate, which relies on this attribute (rather than the value of `--crate-name` passed by
+// cargo) to detect this crate.
 #![crate_name = "test"]
 #![unstable(feature = "test", issue = "27812")]
-#![crate_type = "rlib"]
-#![crate_type = "dylib"]
 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
        html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
        html_root_url = "https://doc.rust-lang.org/nightly/",