diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-06-06 13:21:18 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-07-05 12:38:42 -0700 |
| commit | 50ee1ec1b4f107122d8037ac7b0b312afa6eb0ac (patch) | |
| tree | 6e812d9727a61ccea67f3bc922557d6d45736fbd /src/librustdoc/test.rs | |
| parent | aaff4e05e19b48d81e4ecb3337f288f42d06edd0 (diff) | |
| download | rust-50ee1ec1b4f107122d8037ac7b0b312afa6eb0ac.tar.gz rust-50ee1ec1b4f107122d8037ac7b0b312afa6eb0ac.zip | |
rustc: Remove CrateId and all related support
This commit removes all support in the compiler for the #[crate_id] attribute and all of its derivative infrastructure. A list of the functionality removed is: * The #[crate_id] attribute no longer exists * There is no longer the concept of a version of a crate * Version numbers are no longer appended to symbol names * The --crate-id command line option has been removed To migrate forward, rename #[crate_id] to #[crate_name] and only the name of the crate itself should be mentioned. The version/path of the old crate id should be removed. For a transitionary state, the #[crate_id] attribute is still accepted if the #[crate_name] is not present, but it is warned about if it is the only identifier present. RFC: 0035-remove-crate-id [breaking-change]
Diffstat (limited to 'src/librustdoc/test.rs')
| -rw-r--r-- | src/librustdoc/test.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/test.rs b/src/librustdoc/test.rs index 7e7f10f7178..18f82331780 100644 --- a/src/librustdoc/test.rs +++ b/src/librustdoc/test.rs @@ -69,7 +69,7 @@ pub fn run(input: &str, })); let krate = driver::phase_1_parse_input(&sess, cfg, &input); let (krate, _) = driver::phase_2_configure_and_expand(&sess, krate, - &from_str("rustdoc-test").unwrap()) + "rustdoc-test") .expect("phase_2_configure_and_expand aborted in rustdoc!"); let ctx = box(GC) core::DocContext { |
