]> git.lizzy.rs Git - rust.git/commit
rustc: Remove CrateId and all related support
authorAlex Crichton <alex@alexcrichton.com>
Fri, 6 Jun 2014 20:21:18 +0000 (13:21 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 5 Jul 2014 19:38:42 +0000 (12:38 -0700)
commit50ee1ec1b4f107122d8037ac7b0b312afa6eb0ac
tree6e812d9727a61ccea67f3bc922557d6d45736fbd
parentaaff4e05e19b48d81e4ecb3337f288f42d06edd0
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]
24 files changed:
src/librustc/back/link.rs
src/librustc/driver/config.rs
src/librustc/driver/driver.rs
src/librustc/driver/mod.rs
src/librustc/front/std_inject.rs
src/librustc/front/test.rs
src/librustc/metadata/common.rs
src/librustc/metadata/creader.rs
src/librustc/metadata/cstore.rs
src/librustc/metadata/decoder.rs
src/librustc/metadata/encoder.rs
src/librustc/middle/save/mod.rs
src/librustc/middle/trans/base.rs
src/librustc/middle/trans/debuginfo.rs
src/librustc/middle/trans/foreign.rs
src/librustc/middle/trans/monomorphize.rs
src/librustc/middle/typeck/infer/test.rs
src/librustdoc/clean/mod.rs
src/librustdoc/core.rs
src/librustdoc/lib.rs
src/librustdoc/test.rs
src/libsyntax/attr.rs
src/libsyntax/ext/base.rs
src/libsyntax/ext/expand.rs