diff options
| author | bors <bors@rust-lang.org> | 2014-07-05 22:51:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-07-05 22:51:38 +0000 |
| commit | c3ef04be5589901e7f3d9428ebe8f1eb2bdca7e4 (patch) | |
| tree | 38550cd6dbb5daa27969c3f05b3e46c01ba4f2d0 /src/libtest/lib.rs | |
| parent | b8ef5cf1310a7b1e31d0993885d867a6804597ad (diff) | |
| parent | 56f71015515490b65b5fbb46ff0bbc7d7af82450 (diff) | |
| download | rust-c3ef04be5589901e7f3d9428ebe8f1eb2bdca7e4.tar.gz rust-c3ef04be5589901e7f3d9428ebe8f1eb2bdca7e4.zip | |
auto merge of #15319 : alexcrichton/rust/no-crate-id, r=brson
This is an implementation of [RFC 35](https://github.com/rust-lang/rfcs/blob/master/active/0035-remove-crate-id.md). The summary for this PR is the same as that of the RFC, with one addendum: * Removes the `#[crate_id]` attribute and knowledge of versions from rustc. * Added a `#[crate_name]` attribute similar to the old `#[crate_id]` attribute * Output filenames no longer have versions or hashes * Symbols no longer have versions (they still have hashes) * A new flag, `--extern`, is used to override searching for external crates * A new flag, `-C metadata=foo`, used when hashing symbols * [added] An old flag, `--crate-name`, was re purposed to specify the crate name from the command line. I tried to maintain backwards compatibility wherever possible (with warnings being printed). If I missed anywhere, however, please let me know! [breaking-change] Closes #14468 Closes #14469 Closes #14470 Closes #14471
Diffstat (limited to 'src/libtest/lib.rs')
| -rw-r--r-- | src/libtest/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 02f7ebc6d21..1eb13fd660e 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -23,7 +23,8 @@ // running tests while providing a base that other test frameworks may // build off of. -#![crate_id = "test#0.11.0"] +#![crate_id = "test#0.11.0"] // NOTE: remove after stage0 +#![crate_name = "test"] // NOTE: remove after stage0 #![experimental] #![comment = "Rust internal test library only used by rustc"] #![license = "MIT/ASL2"] @@ -32,6 +33,7 @@ #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/0.11.0/")] +#![allow(unused_attribute)] // NOTE: remove after stage0 #![feature(asm, macro_rules, phase)] |
