about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2014-11-26 11:44:45 -0800
committerSteven Fackler <sfackler@gmail.com>2014-11-26 11:44:45 -0800
commit348cc9418ae43527980e63f2857c56344c3374c6 (patch)
treeccc4ae85fadca109d1aa00788f861ae7a7dcf13e
parent930f87774db33f8a8963b22e82e1b1d1907ea30a (diff)
downloadrust-348cc9418ae43527980e63f2857c56344c3374c6.tar.gz
rust-348cc9418ae43527980e63f2857c56344c3374c6.zip
Remove special casing for some meta attributes
Descriptions and licenses are handled by Cargo now, so there's no reason
to keep these attributes around.
-rw-r--r--src/doc/reference.md11
-rw-r--r--src/liballoc/lib.rs1
-rw-r--r--src/libarena/lib.rs1
-rw-r--r--src/libcollections/lib.rs1
-rw-r--r--src/libcore/lib.rs1
-rw-r--r--src/libflate/lib.rs1
-rw-r--r--src/libfmt_macros/lib.rs1
-rw-r--r--src/libgetopts/lib.rs1
-rw-r--r--src/libgraphviz/lib.rs1
-rw-r--r--src/liblog/lib.rs1
-rw-r--r--src/librand/lib.rs1
-rw-r--r--src/librbml/lib.rs1
-rw-r--r--src/libregex/lib.rs1
-rw-r--r--src/libregex_macros/lib.rs1
-rw-r--r--src/librustc/lib.rs2
-rw-r--r--src/librustc/lint/builtin.rs9
-rw-r--r--src/librustc_back/lib.rs2
-rw-r--r--src/librustc_llvm/lib.rs1
-rw-r--r--src/librustc_trans/lib.rs2
-rw-r--r--src/librustdoc/lib.rs2
-rw-r--r--src/librustrt/lib.rs1
-rw-r--r--src/libserialize/lib.rs1
-rw-r--r--src/libstd/lib.rs2
-rw-r--r--src/libsyntax/lib.rs1
-rw-r--r--src/libterm/lib.rs2
-rw-r--r--src/libtest/lib.rs2
-rw-r--r--src/libtime/lib.rs1
-rw-r--r--src/libunicode/lib.rs1
28 files changed, 3 insertions, 50 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index f53d083ee06..1d27ac096df 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -777,13 +777,8 @@ metadata that influences the behavior of the compiler.
 
 ```{.rust}
 # #![allow(unused_attribute)]
-// Crate ID
-#![crate_id = "projx#2.5"]
-
-// Additional metadata attributes
-#![desc = "Project X"]
-#![license = "BSD"]
-#![comment = "This is a comment on Project X."]
+// Crate name
+#![crate_name = "projx"]
 
 // Specify the output type
 #![crate_type = "lib"]
@@ -1961,7 +1956,7 @@ An example of attributes:
 
 ```{.rust}
 // General metadata applied to the enclosing module or crate.
-#![license = "BSD"]
+#![crate_type = "lib"]
 
 // A function marked as a unit test
 #[test]
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index 173ca008d03..0b27fbd4404 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -58,7 +58,6 @@
 
 #![crate_name = "alloc"]
 #![experimental]
-#![license = "MIT/ASL2"]
 #![crate_type = "rlib"]
 #![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",
diff --git a/src/libarena/lib.rs b/src/libarena/lib.rs
index 33d4406b733..8b84ecb6904 100644
--- a/src/libarena/lib.rs
+++ b/src/libarena/lib.rs
@@ -23,7 +23,6 @@
 #![experimental]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
-#![license = "MIT/ASL2"]
 #![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/nightly/")]
diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs
index 7965ac26a62..1e104b31447 100644
--- a/src/libcollections/lib.rs
+++ b/src/libcollections/lib.rs
@@ -16,7 +16,6 @@
 #![crate_name = "collections"]
 #![experimental]
 #![crate_type = "rlib"]
-#![license = "MIT/ASL2"]
 #![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/nightly/",
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs
index 5e3c74477d1..56a86773060 100644
--- a/src/libcore/lib.rs
+++ b/src/libcore/lib.rs
@@ -49,7 +49,6 @@
 
 #![crate_name = "core"]
 #![experimental]
-#![license = "MIT/ASL2"]
 #![crate_type = "rlib"]
 #![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",
diff --git a/src/libflate/lib.rs b/src/libflate/lib.rs
index 568210118a8..e8eafa2576c 100644
--- a/src/libflate/lib.rs
+++ b/src/libflate/lib.rs
@@ -22,7 +22,6 @@ Simple [DEFLATE][def]-based compression. This is a wrapper around the
 #![experimental]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
-#![license = "MIT/ASL2"]
 #![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/nightly/")]
diff --git a/src/libfmt_macros/lib.rs b/src/libfmt_macros/lib.rs
index d3bee557220..6b8fafbed5d 100644
--- a/src/libfmt_macros/lib.rs
+++ b/src/libfmt_macros/lib.rs
@@ -16,7 +16,6 @@
 
 #![crate_name = "fmt_macros"]
 #![experimental]
-#![license = "MIT/ASL2"]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
 #![feature(macro_rules, globs, import_shadowing)]
diff --git a/src/libgetopts/lib.rs b/src/libgetopts/lib.rs
index a182f582b5f..58769ef5a1b 100644
--- a/src/libgetopts/lib.rs
+++ b/src/libgetopts/lib.rs
@@ -82,7 +82,6 @@
 #![experimental]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
-#![license = "MIT/ASL2"]
 #![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/nightly/",
diff --git a/src/libgraphviz/lib.rs b/src/libgraphviz/lib.rs
index f149ec509af..79fc9dcc9cb 100644
--- a/src/libgraphviz/lib.rs
+++ b/src/libgraphviz/lib.rs
@@ -267,7 +267,6 @@ pub fn main() {
 #![experimental]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
-#![license = "MIT/ASL2"]
 #![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/nightly/")]
diff --git a/src/liblog/lib.rs b/src/liblog/lib.rs
index dab033e0972..5642ec91ba3 100644
--- a/src/liblog/lib.rs
+++ b/src/liblog/lib.rs
@@ -159,7 +159,6 @@
 
 #![crate_name = "log"]
 #![experimental]
-#![license = "MIT/ASL2"]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
diff --git a/src/librand/lib.rs b/src/librand/lib.rs
index 1ff66d0653f..de40ee4893d 100644
--- a/src/librand/lib.rs
+++ b/src/librand/lib.rs
@@ -17,7 +17,6 @@
 //! interface through `std::rand`.
 
 #![crate_name = "rand"]
-#![license = "MIT/ASL2"]
 #![crate_type = "rlib"]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
        html_favicon_url = "http://www.rust-lang.org/favicon.ico",
diff --git a/src/librbml/lib.rs b/src/librbml/lib.rs
index 3f3f3179d27..6f3fbe12510 100644
--- a/src/librbml/lib.rs
+++ b/src/librbml/lib.rs
@@ -19,7 +19,6 @@
 #![experimental]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
-#![license = "MIT/ASL2"]
 #![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/nightly/",
diff --git a/src/libregex/lib.rs b/src/libregex/lib.rs
index d8f1eeee50b..b35c3879783 100644
--- a/src/libregex/lib.rs
+++ b/src/libregex/lib.rs
@@ -363,7 +363,6 @@
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
 #![experimental]
-#![license = "MIT/ASL2"]
 #![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/nightly/",
diff --git a/src/libregex_macros/lib.rs b/src/libregex_macros/lib.rs
index 3cc6d361e3c..52ec18be979 100644
--- a/src/libregex_macros/lib.rs
+++ b/src/libregex_macros/lib.rs
@@ -14,7 +14,6 @@
 #![crate_name = "regex_macros"]
 #![crate_type = "dylib"]
 #![experimental]
-#![license = "MIT/ASL2"]
 #![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/nightly/")]
diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs
index f272bb52a14..4894b7398cb 100644
--- a/src/librustc/lib.rs
+++ b/src/librustc/lib.rs
@@ -20,8 +20,6 @@ This API is completely unstable and subject to change.
 
 #![crate_name = "rustc"]
 #![experimental]
-#![comment = "The Rust compiler"]
-#![license = "MIT/ASL2"]
 #![crate_type = "dylib"]
 #![crate_type = "rlib"]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs
index 9fe7a21243f..56f5fdd8f0d 100644
--- a/src/librustc/lint/builtin.rs
+++ b/src/librustc/lint/builtin.rs
@@ -635,11 +635,6 @@ impl LintPass for UnusedAttributes {
             // used in resolve
             "prelude_import",
 
-            // not used anywhere (!?) but apparently we want to keep them around
-            "comment",
-            "desc",
-            "license",
-
             // FIXME: #14407 these are only looked at on-demand so we can't
             // guarantee they'll have already been checked
             "deprecated",
@@ -658,10 +653,6 @@ impl LintPass for UnusedAttributes {
             "no_start",
             "no_main",
             "no_std",
-            "desc",
-            "comment",
-            "license",
-            "copyright",
             "no_builtins",
         ];
 
diff --git a/src/librustc_back/lib.rs b/src/librustc_back/lib.rs
index 97d94437acd..fc98a5cd6b5 100644
--- a/src/librustc_back/lib.rs
+++ b/src/librustc_back/lib.rs
@@ -23,8 +23,6 @@
 
 #![crate_name = "rustc_back"]
 #![experimental]
-#![comment = "The Rust compiler minimal-dependency dumping-ground"]
-#![license = "MIT/ASL2"]
 #![crate_type = "dylib"]
 #![crate_type = "rlib"]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
diff --git a/src/librustc_llvm/lib.rs b/src/librustc_llvm/lib.rs
index d67d0fa59ae..95d111bf49b 100644
--- a/src/librustc_llvm/lib.rs
+++ b/src/librustc_llvm/lib.rs
@@ -15,7 +15,6 @@
 
 #![crate_name = "rustc_llvm"]
 #![experimental]
-#![license = "MIT/ASL2"]
 #![crate_type = "dylib"]
 #![crate_type = "rlib"]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
diff --git a/src/librustc_trans/lib.rs b/src/librustc_trans/lib.rs
index f89580b768e..7efae9f0ea1 100644
--- a/src/librustc_trans/lib.rs
+++ b/src/librustc_trans/lib.rs
@@ -20,8 +20,6 @@ This API is completely unstable and subject to change.
 
 #![crate_name = "rustc_trans"]
 #![experimental]
-#![comment = "The Rust compiler back end and driver"]
-#![license = "MIT/ASL2"]
 #![crate_type = "dylib"]
 #![crate_type = "rlib"]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs
index 36e74d43e64..7b8549c63a8 100644
--- a/src/librustdoc/lib.rs
+++ b/src/librustdoc/lib.rs
@@ -10,8 +10,6 @@
 
 #![crate_name = "rustdoc"]
 #![experimental]
-#![desc = "rustdoc, the Rust documentation extractor"]
-#![license = "MIT/ASL2"]
 #![crate_type = "dylib"]
 #![crate_type = "rlib"]
 
diff --git a/src/librustrt/lib.rs b/src/librustrt/lib.rs
index 3d172d62350..066e8c51aef 100644
--- a/src/librustrt/lib.rs
+++ b/src/librustrt/lib.rs
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 #![crate_name = "rustrt"]
-#![license = "MIT/ASL2"]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
diff --git a/src/libserialize/lib.rs b/src/libserialize/lib.rs
index b2a035f4ee5..9711d5c7209 100644
--- a/src/libserialize/lib.rs
+++ b/src/libserialize/lib.rs
@@ -18,7 +18,6 @@ Core encoding and decoding interfaces.
 #![experimental]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
-#![license = "MIT/ASL2"]
 #![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/nightly/",
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 80249808546..f6b73f037f2 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -96,8 +96,6 @@
 
 #![crate_name = "std"]
 #![unstable]
-#![comment = "The Rust standard library"]
-#![license = "MIT/ASL2"]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs
index c9d72603b89..f3686864518 100644
--- a/src/libsyntax/lib.rs
+++ b/src/libsyntax/lib.rs
@@ -16,7 +16,6 @@
 
 #![crate_name = "syntax"]
 #![experimental]
-#![license = "MIT/ASL2"]
 #![crate_type = "dylib"]
 #![crate_type = "rlib"]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
diff --git a/src/libterm/lib.rs b/src/libterm/lib.rs
index 151a388a133..f29da1870ff 100644
--- a/src/libterm/lib.rs
+++ b/src/libterm/lib.rs
@@ -40,8 +40,6 @@
 
 #![crate_name = "term"]
 #![experimental]
-#![comment = "Simple ANSI color library"]
-#![license = "MIT/ASL2"]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs
index 9acb12c56d9..308f4a558cf 100644
--- a/src/libtest/lib.rs
+++ b/src/libtest/lib.rs
@@ -25,8 +25,6 @@
 
 #![crate_name = "test"]
 #![experimental]
-#![comment = "Rust internal test library only used by rustc"]
-#![license = "MIT/ASL2"]
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
 #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
diff --git a/src/libtime/lib.rs b/src/libtime/lib.rs
index 062035c23f9..e31d0d35293 100644
--- a/src/libtime/lib.rs
+++ b/src/libtime/lib.rs
@@ -16,7 +16,6 @@
 
 #![crate_type = "rlib"]
 #![crate_type = "dylib"]
-#![license = "MIT/ASL2"]
 #![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/nightly/",
diff --git a/src/libunicode/lib.rs b/src/libunicode/lib.rs
index 7e51c0d4291..66cd22dfb08 100644
--- a/src/libunicode/lib.rs
+++ b/src/libunicode/lib.rs
@@ -22,7 +22,6 @@
 
 #![crate_name = "unicode"]
 #![experimental]
-#![license = "MIT/ASL2"]
 #![crate_type = "rlib"]
 #![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",