auto merge of #19343 : sfackler/rust/less-special-attrs, r=alexcrichton
Descriptions and licenses are handled by Cargo now, so there's no reason to keep these attributes around.
This commit is contained in:
commit
66601647cd
|
@ -777,13 +777,8 @@ metadata that influences the behavior of the compiler.
|
||||||
|
|
||||||
```{.rust}
|
```{.rust}
|
||||||
# #![allow(unused_attribute)]
|
# #![allow(unused_attribute)]
|
||||||
// Crate ID
|
// Crate name
|
||||||
#![crate_id = "projx#2.5"]
|
#![crate_name = "projx"]
|
||||||
|
|
||||||
// Additional metadata attributes
|
|
||||||
#![desc = "Project X"]
|
|
||||||
#![license = "BSD"]
|
|
||||||
#![comment = "This is a comment on Project X."]
|
|
||||||
|
|
||||||
// Specify the output type
|
// Specify the output type
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
|
@ -1961,7 +1956,7 @@ An example of attributes:
|
||||||
|
|
||||||
```{.rust}
|
```{.rust}
|
||||||
// General metadata applied to the enclosing module or crate.
|
// General metadata applied to the enclosing module or crate.
|
||||||
#![license = "BSD"]
|
#![crate_type = "lib"]
|
||||||
|
|
||||||
// A function marked as a unit test
|
// A function marked as a unit test
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -58,7 +58,6 @@
|
||||||
|
|
||||||
#![crate_name = "alloc"]
|
#![crate_name = "alloc"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://doc.rust-lang.org/nightly/")]
|
html_root_url = "http://doc.rust-lang.org/nightly/")]
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#![crate_name = "collections"]
|
#![crate_name = "collections"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://doc.rust-lang.org/nightly/",
|
html_root_url = "http://doc.rust-lang.org/nightly/",
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
|
|
||||||
#![crate_name = "core"]
|
#![crate_name = "core"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://doc.rust-lang.org/nightly/")]
|
html_root_url = "http://doc.rust-lang.org/nightly/")]
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
#![crate_name = "fmt_macros"]
|
#![crate_name = "fmt_macros"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![feature(macro_rules, globs, import_shadowing)]
|
#![feature(macro_rules, globs, import_shadowing)]
|
||||||
|
|
|
@ -82,7 +82,6 @@
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://doc.rust-lang.org/nightly/",
|
html_root_url = "http://doc.rust-lang.org/nightly/",
|
||||||
|
|
|
@ -265,7 +265,6 @@
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://doc.rust-lang.org/nightly/")]
|
html_root_url = "http://doc.rust-lang.org/nightly/")]
|
||||||
|
|
|
@ -159,7 +159,6 @@
|
||||||
|
|
||||||
#![crate_name = "log"]
|
#![crate_name = "log"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
//! interface through `std::rand`.
|
//! interface through `std::rand`.
|
||||||
|
|
||||||
#![crate_name = "rand"]
|
#![crate_name = "rand"]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
|
#![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",
|
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://doc.rust-lang.org/nightly/",
|
html_root_url = "http://doc.rust-lang.org/nightly/",
|
||||||
|
|
|
@ -363,7 +363,6 @@
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://doc.rust-lang.org/nightly/",
|
html_root_url = "http://doc.rust-lang.org/nightly/",
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
#![crate_name = "regex_macros"]
|
#![crate_name = "regex_macros"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://doc.rust-lang.org/nightly/")]
|
html_root_url = "http://doc.rust-lang.org/nightly/")]
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
|
|
||||||
#![crate_name = "rustc"]
|
#![crate_name = "rustc"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![comment = "The Rust compiler"]
|
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -635,11 +635,6 @@ impl LintPass for UnusedAttributes {
|
||||||
// used in resolve
|
// used in resolve
|
||||||
"prelude_import",
|
"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
|
// FIXME: #14407 these are only looked at on-demand so we can't
|
||||||
// guarantee they'll have already been checked
|
// guarantee they'll have already been checked
|
||||||
"deprecated",
|
"deprecated",
|
||||||
|
@ -658,10 +653,6 @@ impl LintPass for UnusedAttributes {
|
||||||
"no_start",
|
"no_start",
|
||||||
"no_main",
|
"no_main",
|
||||||
"no_std",
|
"no_std",
|
||||||
"desc",
|
|
||||||
"comment",
|
|
||||||
"license",
|
|
||||||
"copyright",
|
|
||||||
"no_builtins",
|
"no_builtins",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
|
|
||||||
#![crate_name = "rustc_back"]
|
#![crate_name = "rustc_back"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![comment = "The Rust compiler minimal-dependency dumping-ground"]
|
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
|
|
||||||
#![crate_name = "rustc_llvm"]
|
#![crate_name = "rustc_llvm"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
|
|
||||||
#![crate_name = "rustc_trans"]
|
#![crate_name = "rustc_trans"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![comment = "The Rust compiler back end and driver"]
|
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
#![crate_name = "rustdoc"]
|
#![crate_name = "rustdoc"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![desc = "rustdoc, the Rust documentation extractor"]
|
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![crate_name = "rustrt"]
|
#![crate_name = "rustrt"]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -18,7 +18,6 @@ Core encoding and decoding interfaces.
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://doc.rust-lang.org/nightly/",
|
html_root_url = "http://doc.rust-lang.org/nightly/",
|
||||||
|
|
|
@ -96,8 +96,6 @@
|
||||||
|
|
||||||
#![crate_name = "std"]
|
#![crate_name = "std"]
|
||||||
#![unstable]
|
#![unstable]
|
||||||
#![comment = "The Rust standard library"]
|
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
#![crate_name = "syntax"]
|
#![crate_name = "syntax"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -40,8 +40,6 @@
|
||||||
|
|
||||||
#![crate_name = "term"]
|
#![crate_name = "term"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![comment = "Simple ANSI color library"]
|
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -25,8 +25,6 @@
|
||||||
|
|
||||||
#![crate_name = "test"]
|
#![crate_name = "test"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![comment = "Rust internal test library only used by rustc"]
|
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://doc.rust-lang.org/nightly/",
|
html_root_url = "http://doc.rust-lang.org/nightly/",
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
|
|
||||||
#![crate_name = "unicode"]
|
#![crate_name = "unicode"]
|
||||||
#![experimental]
|
#![experimental]
|
||||||
#![license = "MIT/ASL2"]
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
|
#![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_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
|
|
Loading…
Reference in New Issue