Skip to content

Commit 6660164

Browse files
committed
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.
2 parents f358ca4 + 348cc94 commit 6660164

File tree

28 files changed

+3
-50
lines changed

28 files changed

+3
-50
lines changed

src/doc/reference.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -777,13 +777,8 @@ metadata that influences the behavior of the compiler.
777777

778778
```{.rust}
779779
# #![allow(unused_attribute)]
780-
// Crate ID
781-
#![crate_id = "projx#2.5"]
782-
783-
// Additional metadata attributes
784-
#![desc = "Project X"]
785-
#![license = "BSD"]
786-
#![comment = "This is a comment on Project X."]
780+
// Crate name
781+
#![crate_name = "projx"]
787782
788783
// Specify the output type
789784
#![crate_type = "lib"]
@@ -1961,7 +1956,7 @@ An example of attributes:
19611956

19621957
```{.rust}
19631958
// General metadata applied to the enclosing module or crate.
1964-
#![license = "BSD"]
1959+
#![crate_type = "lib"]
19651960
19661961
// A function marked as a unit test
19671962
#[test]

src/liballoc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
5959
#![crate_name = "alloc"]
6060
#![experimental]
61-
#![license = "MIT/ASL2"]
6261
#![crate_type = "rlib"]
6362
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
6463
html_favicon_url = "http://www.rust-lang.org/favicon.ico",

src/libarena/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#![experimental]
2424
#![crate_type = "rlib"]
2525
#![crate_type = "dylib"]
26-
#![license = "MIT/ASL2"]
2726
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2827
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2928
html_root_url = "http://doc.rust-lang.org/nightly/")]

src/libcollections/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#![crate_name = "collections"]
1717
#![experimental]
1818
#![crate_type = "rlib"]
19-
#![license = "MIT/ASL2"]
2019
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2120
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2221
html_root_url = "http://doc.rust-lang.org/nightly/",

src/libcore/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949

5050
#![crate_name = "core"]
5151
#![experimental]
52-
#![license = "MIT/ASL2"]
5352
#![crate_type = "rlib"]
5453
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
5554
html_favicon_url = "http://www.rust-lang.org/favicon.ico",

src/libflate/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#![experimental]
1919
#![crate_type = "rlib"]
2020
#![crate_type = "dylib"]
21-
#![license = "MIT/ASL2"]
2221
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2322
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2423
html_root_url = "http://doc.rust-lang.org/nightly/")]

src/libfmt_macros/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
1717
#![crate_name = "fmt_macros"]
1818
#![experimental]
19-
#![license = "MIT/ASL2"]
2019
#![crate_type = "rlib"]
2120
#![crate_type = "dylib"]
2221
#![feature(macro_rules, globs, import_shadowing)]

src/libgetopts/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
#![experimental]
8383
#![crate_type = "rlib"]
8484
#![crate_type = "dylib"]
85-
#![license = "MIT/ASL2"]
8685
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
8786
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
8887
html_root_url = "http://doc.rust-lang.org/nightly/",

src/libgraphviz/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,6 @@
265265
#![experimental]
266266
#![crate_type = "rlib"]
267267
#![crate_type = "dylib"]
268-
#![license = "MIT/ASL2"]
269268
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
270269
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
271270
html_root_url = "http://doc.rust-lang.org/nightly/")]

src/liblog/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@
159159
160160
#![crate_name = "log"]
161161
#![experimental]
162-
#![license = "MIT/ASL2"]
163162
#![crate_type = "rlib"]
164163
#![crate_type = "dylib"]
165164
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

0 commit comments

Comments
 (0)