File tree 28 files changed +3
-50
lines changed
28 files changed +3
-50
lines changed Original file line number Diff line number Diff line change @@ -777,13 +777,8 @@ metadata that influences the behavior of the compiler.
777
777
778
778
``` {.rust}
779
779
# #![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"]
787
782
788
783
// Specify the output type
789
784
#![crate_type = "lib"]
@@ -1961,7 +1956,7 @@ An example of attributes:
1961
1956
1962
1957
``` {.rust}
1963
1958
// General metadata applied to the enclosing module or crate.
1964
- #![license = "BSD "]
1959
+ #![crate_type = "lib "]
1965
1960
1966
1961
// A function marked as a unit test
1967
1962
#[test]
Original file line number Diff line number Diff line change 58
58
59
59
#![ crate_name = "alloc" ]
60
60
#![ experimental]
61
- #![ license = "MIT/ASL2" ]
62
61
#![ crate_type = "rlib" ]
63
62
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
64
63
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
Original file line number Diff line number Diff line change 23
23
#![ experimental]
24
24
#![ crate_type = "rlib" ]
25
25
#![ crate_type = "dylib" ]
26
- #![ license = "MIT/ASL2" ]
27
26
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
28
27
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
29
28
html_root_url = "http://doc.rust-lang.org/nightly/" ) ]
Original file line number Diff line number Diff line change 16
16
#![ crate_name = "collections" ]
17
17
#![ experimental]
18
18
#![ crate_type = "rlib" ]
19
- #![ license = "MIT/ASL2" ]
20
19
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
21
20
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
22
21
html_root_url = "http://doc.rust-lang.org/nightly/" ,
Original file line number Diff line number Diff line change 49
49
50
50
#![ crate_name = "core" ]
51
51
#![ experimental]
52
- #![ license = "MIT/ASL2" ]
53
52
#![ crate_type = "rlib" ]
54
53
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
55
54
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
Original file line number Diff line number Diff line change 18
18
#![ experimental]
19
19
#![ crate_type = "rlib" ]
20
20
#![ crate_type = "dylib" ]
21
- #![ license = "MIT/ASL2" ]
22
21
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
23
22
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
24
23
html_root_url = "http://doc.rust-lang.org/nightly/" ) ]
Original file line number Diff line number Diff line change 16
16
17
17
#![ crate_name = "fmt_macros" ]
18
18
#![ experimental]
19
- #![ license = "MIT/ASL2" ]
20
19
#![ crate_type = "rlib" ]
21
20
#![ crate_type = "dylib" ]
22
21
#![ feature( macro_rules, globs, import_shadowing) ]
Original file line number Diff line number Diff line change 82
82
#![ experimental]
83
83
#![ crate_type = "rlib" ]
84
84
#![ crate_type = "dylib" ]
85
- #![ license = "MIT/ASL2" ]
86
85
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
87
86
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
88
87
html_root_url = "http://doc.rust-lang.org/nightly/" ,
Original file line number Diff line number Diff line change 265
265
#![ experimental]
266
266
#![ crate_type = "rlib" ]
267
267
#![ crate_type = "dylib" ]
268
- #![ license = "MIT/ASL2" ]
269
268
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
270
269
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
271
270
html_root_url = "http://doc.rust-lang.org/nightly/" ) ]
Original file line number Diff line number Diff line change 159
159
160
160
#![ crate_name = "log" ]
161
161
#![ experimental]
162
- #![ license = "MIT/ASL2" ]
163
162
#![ crate_type = "rlib" ]
164
163
#![ crate_type = "dylib" ]
165
164
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
Original file line number Diff line number Diff line change 17
17
//! interface through `std::rand`.
18
18
19
19
#![ crate_name = "rand" ]
20
- #![ license = "MIT/ASL2" ]
21
20
#![ crate_type = "rlib" ]
22
21
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png" ,
23
22
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
Original file line number Diff line number Diff line change 19
19
#![ experimental]
20
20
#![ crate_type = "rlib" ]
21
21
#![ crate_type = "dylib" ]
22
- #![ license = "MIT/ASL2" ]
23
22
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
24
23
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
25
24
html_root_url = "http://doc.rust-lang.org/nightly/" ,
Original file line number Diff line number Diff line change 363
363
#![ crate_type = "rlib" ]
364
364
#![ crate_type = "dylib" ]
365
365
#![ experimental]
366
- #![ license = "MIT/ASL2" ]
367
366
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
368
367
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
369
368
html_root_url = "http://doc.rust-lang.org/nightly/" ,
Original file line number Diff line number Diff line change 14
14
#![ crate_name = "regex_macros" ]
15
15
#![ crate_type = "dylib" ]
16
16
#![ experimental]
17
- #![ license = "MIT/ASL2" ]
18
17
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
19
18
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
20
19
html_root_url = "http://doc.rust-lang.org/nightly/" ) ]
Original file line number Diff line number Diff line change 16
16
17
17
#![ crate_name = "rustc" ]
18
18
#![ experimental]
19
- #![ comment = "The Rust compiler" ]
20
- #![ license = "MIT/ASL2" ]
21
19
#![ crate_type = "dylib" ]
22
20
#![ crate_type = "rlib" ]
23
21
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
Original file line number Diff line number Diff line change @@ -635,11 +635,6 @@ impl LintPass for UnusedAttributes {
635
635
// used in resolve
636
636
"prelude_import" ,
637
637
638
- // not used anywhere (!?) but apparently we want to keep them around
639
- "comment" ,
640
- "desc" ,
641
- "license" ,
642
-
643
638
// FIXME: #14407 these are only looked at on-demand so we can't
644
639
// guarantee they'll have already been checked
645
640
"deprecated" ,
@@ -658,10 +653,6 @@ impl LintPass for UnusedAttributes {
658
653
"no_start" ,
659
654
"no_main" ,
660
655
"no_std" ,
661
- "desc" ,
662
- "comment" ,
663
- "license" ,
664
- "copyright" ,
665
656
"no_builtins" ,
666
657
] ;
667
658
Original file line number Diff line number Diff line change 23
23
24
24
#![ crate_name = "rustc_back" ]
25
25
#![ experimental]
26
- #![ comment = "The Rust compiler minimal-dependency dumping-ground" ]
27
- #![ license = "MIT/ASL2" ]
28
26
#![ crate_type = "dylib" ]
29
27
#![ crate_type = "rlib" ]
30
28
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
Original file line number Diff line number Diff line change 15
15
16
16
#![ crate_name = "rustc_llvm" ]
17
17
#![ experimental]
18
- #![ license = "MIT/ASL2" ]
19
18
#![ crate_type = "dylib" ]
20
19
#![ crate_type = "rlib" ]
21
20
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
Original file line number Diff line number Diff line change 16
16
17
17
#![ crate_name = "rustc_trans" ]
18
18
#![ experimental]
19
- #![ comment = "The Rust compiler back end and driver" ]
20
- #![ license = "MIT/ASL2" ]
21
19
#![ crate_type = "dylib" ]
22
20
#![ crate_type = "rlib" ]
23
21
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
Original file line number Diff line number Diff line change 10
10
11
11
#![ crate_name = "rustdoc" ]
12
12
#![ experimental]
13
- #![ desc = "rustdoc, the Rust documentation extractor" ]
14
- #![ license = "MIT/ASL2" ]
15
13
#![ crate_type = "dylib" ]
16
14
#![ crate_type = "rlib" ]
17
15
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
#![ crate_name = "rustrt" ]
12
- #![ license = "MIT/ASL2" ]
13
12
#![ crate_type = "rlib" ]
14
13
#![ crate_type = "dylib" ]
15
14
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ Core encoding and decoding interfaces.
18
18
#![ experimental]
19
19
#![ crate_type = "rlib" ]
20
20
#![ crate_type = "dylib" ]
21
- #![ license = "MIT/ASL2" ]
22
21
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
23
22
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
24
23
html_root_url = "http://doc.rust-lang.org/nightly/" ,
Original file line number Diff line number Diff line change 96
96
97
97
#![ crate_name = "std" ]
98
98
#![ unstable]
99
- #![ comment = "The Rust standard library" ]
100
- #![ license = "MIT/ASL2" ]
101
99
#![ crate_type = "rlib" ]
102
100
#![ crate_type = "dylib" ]
103
101
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
Original file line number Diff line number Diff line change 16
16
17
17
#![ crate_name = "syntax" ]
18
18
#![ experimental]
19
- #![ license = "MIT/ASL2" ]
20
19
#![ crate_type = "dylib" ]
21
20
#![ crate_type = "rlib" ]
22
21
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
Original file line number Diff line number Diff line change 40
40
41
41
#![ crate_name = "term" ]
42
42
#![ experimental]
43
- #![ comment = "Simple ANSI color library" ]
44
- #![ license = "MIT/ASL2" ]
45
43
#![ crate_type = "rlib" ]
46
44
#![ crate_type = "dylib" ]
47
45
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
Original file line number Diff line number Diff line change 25
25
26
26
#![ crate_name = "test" ]
27
27
#![ experimental]
28
- #![ comment = "Rust internal test library only used by rustc" ]
29
- #![ license = "MIT/ASL2" ]
30
28
#![ crate_type = "rlib" ]
31
29
#![ crate_type = "dylib" ]
32
30
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
Original file line number Diff line number Diff line change 16
16
17
17
#![ crate_type = "rlib" ]
18
18
#![ crate_type = "dylib" ]
19
- #![ license = "MIT/ASL2" ]
20
19
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
21
20
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
22
21
html_root_url = "http://doc.rust-lang.org/nightly/" ,
Original file line number Diff line number Diff line change 22
22
23
23
#![ crate_name = "unicode" ]
24
24
#![ experimental]
25
- #![ license = "MIT/ASL2" ]
26
25
#![ crate_type = "rlib" ]
27
26
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
28
27
html_favicon_url = "http://www.rust-lang.org/favicon.ico" ,
You can’t perform that action at this time.
0 commit comments