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

+3-8
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

-1
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

-1
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

-1
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

-1
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

-1
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

-1
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

-1
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

-1
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

-1
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",

src/librand/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
//! interface through `std::rand`.
1818
1919
#![crate_name = "rand"]
20-
#![license = "MIT/ASL2"]
2120
#![crate_type = "rlib"]
2221
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
2322
html_favicon_url = "http://www.rust-lang.org/favicon.ico",

src/librbml/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#![experimental]
2020
#![crate_type = "rlib"]
2121
#![crate_type = "dylib"]
22-
#![license = "MIT/ASL2"]
2322
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2423
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2524
html_root_url = "http://doc.rust-lang.org/nightly/",

src/libregex/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@
363363
#![crate_type = "rlib"]
364364
#![crate_type = "dylib"]
365365
#![experimental]
366-
#![license = "MIT/ASL2"]
367366
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
368367
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
369368
html_root_url = "http://doc.rust-lang.org/nightly/",

src/libregex_macros/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#![crate_name = "regex_macros"]
1515
#![crate_type = "dylib"]
1616
#![experimental]
17-
#![license = "MIT/ASL2"]
1817
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1918
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2019
html_root_url = "http://doc.rust-lang.org/nightly/")]

src/librustc/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
1717
#![crate_name = "rustc"]
1818
#![experimental]
19-
#![comment = "The Rust compiler"]
20-
#![license = "MIT/ASL2"]
2119
#![crate_type = "dylib"]
2220
#![crate_type = "rlib"]
2321
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc/lint/builtin.rs

-9
Original file line numberDiff line numberDiff line change
@@ -635,11 +635,6 @@ impl LintPass for UnusedAttributes {
635635
// used in resolve
636636
"prelude_import",
637637

638-
// not used anywhere (!?) but apparently we want to keep them around
639-
"comment",
640-
"desc",
641-
"license",
642-
643638
// FIXME: #14407 these are only looked at on-demand so we can't
644639
// guarantee they'll have already been checked
645640
"deprecated",
@@ -658,10 +653,6 @@ impl LintPass for UnusedAttributes {
658653
"no_start",
659654
"no_main",
660655
"no_std",
661-
"desc",
662-
"comment",
663-
"license",
664-
"copyright",
665656
"no_builtins",
666657
];
667658

src/librustc_back/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
2424
#![crate_name = "rustc_back"]
2525
#![experimental]
26-
#![comment = "The Rust compiler minimal-dependency dumping-ground"]
27-
#![license = "MIT/ASL2"]
2826
#![crate_type = "dylib"]
2927
#![crate_type = "rlib"]
3028
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_llvm/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
#![crate_name = "rustc_llvm"]
1717
#![experimental]
18-
#![license = "MIT/ASL2"]
1918
#![crate_type = "dylib"]
2019
#![crate_type = "rlib"]
2120
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustc_trans/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
1717
#![crate_name = "rustc_trans"]
1818
#![experimental]
19-
#![comment = "The Rust compiler back end and driver"]
20-
#![license = "MIT/ASL2"]
2119
#![crate_type = "dylib"]
2220
#![crate_type = "rlib"]
2321
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/librustdoc/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
#![crate_name = "rustdoc"]
1212
#![experimental]
13-
#![desc = "rustdoc, the Rust documentation extractor"]
14-
#![license = "MIT/ASL2"]
1513
#![crate_type = "dylib"]
1614
#![crate_type = "rlib"]
1715

src/librustrt/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![crate_name = "rustrt"]
12-
#![license = "MIT/ASL2"]
1312
#![crate_type = "rlib"]
1413
#![crate_type = "dylib"]
1514
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libserialize/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Core encoding and decoding interfaces.
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/libstd/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@
9696
9797
#![crate_name = "std"]
9898
#![unstable]
99-
#![comment = "The Rust standard library"]
100-
#![license = "MIT/ASL2"]
10199
#![crate_type = "rlib"]
102100
#![crate_type = "dylib"]
103101
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libsyntax/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
1717
#![crate_name = "syntax"]
1818
#![experimental]
19-
#![license = "MIT/ASL2"]
2019
#![crate_type = "dylib"]
2120
#![crate_type = "rlib"]
2221
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libterm/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040
4141
#![crate_name = "term"]
4242
#![experimental]
43-
#![comment = "Simple ANSI color library"]
44-
#![license = "MIT/ASL2"]
4543
#![crate_type = "rlib"]
4644
#![crate_type = "dylib"]
4745
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libtest/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525

2626
#![crate_name = "test"]
2727
#![experimental]
28-
#![comment = "Rust internal test library only used by rustc"]
29-
#![license = "MIT/ASL2"]
3028
#![crate_type = "rlib"]
3129
#![crate_type = "dylib"]
3230
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libtime/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#![crate_type = "rlib"]
1818
#![crate_type = "dylib"]
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/libunicode/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
2323
#![crate_name = "unicode"]
2424
#![experimental]
25-
#![license = "MIT/ASL2"]
2625
#![crate_type = "rlib"]
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",

0 commit comments

Comments
 (0)