提交 f58de2d6 编写于 作者: B Brian Anderson

Replace unexported meta tags with attributes

Issue #487
上级 60023047
...@@ -249,6 +249,8 @@ fn run_passes(session::session sess, ModuleRef llmod, str output) { ...@@ -249,6 +249,8 @@ fn run_passes(session::session sess, ModuleRef llmod, str output) {
* *
*/ */
iter crate_export_metas(&ast::crate c) -> @ast::meta_item { iter crate_export_metas(&ast::crate c) -> @ast::meta_item {
// FIXME: Need to identify exported attributes as described above,
// reevaluate how the above strategy fits in with attributes
for (ast::attribute attr in c.node.attrs) { for (ast::attribute attr in c.node.attrs) {
put @attr.node.value; put @attr.node.value;
} }
......
...@@ -5,9 +5,8 @@ ...@@ -5,9 +5,8 @@
#[vers = "0.1"]; #[vers = "0.1"];
#[uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf"]; #[uuid = "0ce89b41-2f92-459e-bbc1-8f5fe32f16cf"];
#[url = "http://rust-lang.org/src/rustc"]; #[url = "http://rust-lang.org/src/rustc"];
#[desc = "The Rust compiler"];
meta (desc = "The Rust compiler", #[license = "BSD"];
license = "BSD");
use std (name = "std", use std (name = "std",
......
...@@ -2,9 +2,8 @@ ...@@ -2,9 +2,8 @@
#[vers = "0.1"]; #[vers = "0.1"];
#[uuid = "122bed0b-c19b-4b82-b0b7-7ae8aead7297"]; #[uuid = "122bed0b-c19b-4b82-b0b7-7ae8aead7297"];
#[url = "http://rust-lang.org/src/std"]; #[url = "http://rust-lang.org/src/std"];
#[comment = "Rust standard library"];
meta (comment = "Rust standard library", #[license = "BSD"];
license = "BSD");
// Built-in types support modules. // Built-in types support modules.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册