Skip to content

Commit 83fcd4d

Browse files
committed
Auto merge of #43994 - tamird:remove-attributes, r=alexcrichton
*: remove crate_{name,type} attributes Fixes #41701. r? @arielb1
2 parents 2aeb593 + b3f50ca commit 83fcd4d

File tree

50 files changed

+9
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+9
-142
lines changed

src/liballoc/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@
6060
//! The [`heap`](heap/index.html) module defines the low-level interface to the
6161
//! default global allocator. It is not compatible with the libc allocator API.
6262
63-
#![crate_name = "alloc"]
64-
#![crate_type = "rlib"]
6563
#![allow(unused_attributes)]
6664
#![unstable(feature = "alloc",
6765
reason = "this library is unlikely to be stabilized in its current \

src/liballoc_jemalloc/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![crate_name = "alloc_jemalloc"]
12-
#![crate_type = "rlib"]
1311
#![no_std]
1412
#![unstable(feature = "alloc_jemalloc",
1513
reason = "this library is unlikely to be stabilized in its current \

src/liballoc_system/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![crate_name = "alloc_system"]
12-
#![crate_type = "rlib"]
1311
#![no_std]
1412
#![deny(warnings)]
1513
#![unstable(feature = "alloc_system",

src/libarena/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
//! This crate implements `TypedArena`, a simple arena that can only hold
1919
//! objects of a single type.
2020
21-
#![crate_name = "arena"]
22-
#![crate_type = "rlib"]
23-
#![crate_type = "dylib"]
2421
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2522
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2623
html_root_url = "https://doc.rust-lang.org/nightly/",

src/libcollections/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![crate_name = "collections"]
12-
#![crate_type = "rlib"]
1311
#![allow(unused_attributes)]
1412
#![unstable(feature = "collections",
1513
reason = "this library is unlikely to be stabilized in its current \

src/libcore/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@
5151
// Since libcore defines many fundamental lang items, all tests live in a
5252
// separate crate, libcoretest, to avoid bizarre issues.
5353

54-
#![crate_name = "core"]
5554
#![stable(feature = "core", since = "1.6.0")]
56-
#![crate_type = "rlib"]
5755
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
5856
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
5957
html_root_url = "https://doc.rust-lang.org/nightly/",

src/libfmt_macros/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
//! Parsing does not happen at runtime: structures of `std::fmt::rt` are
1515
//! generated instead.
1616
17-
#![crate_name = "fmt_macros"]
18-
#![crate_type = "rlib"]
19-
#![crate_type = "dylib"]
2017
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2118
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2219
html_root_url = "https://doc.rust-lang.org/nightly/",

src/libgetopts/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@
7777
//! }
7878
//! ```
7979
80-
#![crate_name = "getopts"]
81-
#![crate_type = "rlib"]
82-
#![crate_type = "dylib"]
8380
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
8481
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
8582
html_root_url = "https://doc.rust-lang.org/nightly/",

src/libgraphviz/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,6 @@
283283
//!
284284
//! * [DOT language](http://www.graphviz.org/doc/info/lang.html)
285285
286-
#![crate_name = "graphviz"]
287-
#![crate_type = "rlib"]
288-
#![crate_type = "dylib"]
289286
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
290287
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
291288
html_root_url = "https://doc.rust-lang.org/nightly/",

src/libpanic_abort/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
//! simpler! That being said, it's not quite as versatile, but here goes!
1515
1616
#![no_std]
17-
#![crate_name = "panic_abort"]
18-
#![crate_type = "rlib"]
1917
#![unstable(feature = "panic_abort", issue = "32837")]
2018
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2119
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",

src/libpanic_unwind/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
//! module.
2424
2525
#![no_std]
26-
#![crate_name = "panic_unwind"]
27-
#![crate_type = "rlib"]
2826
#![unstable(feature = "panic_unwind", issue = "32837")]
2927
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
3028
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",

src/libproc_macro/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@
2323
//!
2424
//! See [the book](../book/first-edition/procedural-macros.html) for more.
2525
26-
#![crate_name = "proc_macro"]
2726
#![stable(feature = "proc_macro_lib", since = "1.15.0")]
28-
#![crate_type = "rlib"]
29-
#![crate_type = "dylib"]
3027
#![deny(warnings)]
3128
#![deny(missing_docs)]
3229
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libprofiler_builtins/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@
1414
#![unstable(feature = "profiler_runtime_lib",
1515
reason = "internal implementation detail of rustc right now",
1616
issue = "0")]
17-
#![crate_name = "profiler_builtins"]
18-
#![crate_type = "rlib"]
1917
#![allow(unused_features)]
2018
#![feature(staged_api)]

src/librand/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
//! is not recommended to use this library directly, but rather the official
1717
//! interface through `std::rand`.
1818
19-
#![crate_name = "rand"]
20-
#![crate_type = "rlib"]
2119
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
2220
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2321
html_root_url = "https://doc.rust-lang.org/nightly/",

src/librustc/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
//!
1515
//! This API is completely unstable and subject to change.
1616
17-
#![crate_name = "rustc"]
18-
#![crate_type = "dylib"]
19-
#![crate_type = "rlib"]
2017
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2118
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2219
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_apfloat/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
//!
4040
//! This API is completely unstable and subject to change.
4141
42-
#![crate_name = "rustc_apfloat"]
4342
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
4443
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
4544
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_back/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
//! one that doesn't; the one that doesn't might get decent parallel
2222
//! build speedups.
2323
24-
#![crate_name = "rustc_back"]
25-
#![crate_type = "dylib"]
26-
#![crate_type = "rlib"]
2724
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2825
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2926
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_bitflags/lib.rs

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

1111

12-
#![crate_name = "rustc_bitflags"]
13-
#![crate_type = "rlib"]
1412
#![no_std]
1513
#![deny(warnings)]
1614

src/librustc_borrowck/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![crate_name = "rustc_borrowck"]
12-
#![crate_type = "dylib"]
13-
#![crate_type = "rlib"]
1411
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1512
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
1613
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_const_eval/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
//!
1515
//! This API is completely unstable and subject to change.
1616
17-
#![crate_name = "rustc_const_eval"]
18-
#![crate_type = "dylib"]
19-
#![crate_type = "rlib"]
2017
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2118
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2219
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_const_math/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
//!
1515
//! This API is completely unstable and subject to change.
1616
17-
#![crate_name = "rustc_const_math"]
18-
#![crate_type = "dylib"]
19-
#![crate_type = "rlib"]
2017
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2118
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2219
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_data_structures/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
//!
1717
//! This API is completely unstable and subject to change.
1818
19-
#![crate_name = "rustc_data_structures"]
20-
#![crate_type = "dylib"]
21-
#![crate_type = "rlib"]
2219
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2320
html_favicon_url = "https://www.rust-lang.org/favicon.ico",
2421
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_driver/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
//!
1515
//! This API is completely unstable and subject to change.
1616
17-
#![crate_name = "rustc_driver"]
18-
#![crate_type = "dylib"]
19-
#![crate_type = "rlib"]
2017
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2118
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2219
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_errors/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![crate_name = "rustc_errors"]
12-
#![crate_type = "dylib"]
13-
#![crate_type = "rlib"]
1411
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1512
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
1613
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_incremental/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
//! Support for serializing the dep-graph and reloading it.
1212
13-
#![crate_name = "rustc_incremental"]
14-
#![crate_type = "dylib"]
15-
#![crate_type = "rlib"]
1613
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1714
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
1815
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_lint/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
//!
2020
//! This API is completely unstable and subject to change.
2121
22-
#![crate_name = "rustc_lint"]
23-
#![crate_type = "dylib"]
24-
#![crate_type = "rlib"]
2522
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2623
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2724
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_llvm/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
#![allow(non_snake_case)]
1414
#![allow(dead_code)]
1515

16-
#![crate_name = "rustc_llvm"]
17-
#![crate_type = "dylib"]
18-
#![crate_type = "rlib"]
1916
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2017
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2118
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_metadata/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![crate_name = "rustc_metadata"]
12-
#![crate_type = "dylib"]
13-
#![crate_type = "rlib"]
1411
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1512
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
1613
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_mir/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
1414
1515
*/
1616

17-
#![crate_name = "rustc_mir"]
18-
#![crate_type = "rlib"]
19-
#![crate_type = "dylib"]
2017
#![deny(warnings)]
2118

2219
#![feature(box_patterns)]

src/librustc_passes/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
//!
1515
//! This API is completely unstable and subject to change.
1616
17-
#![crate_name = "rustc_passes"]
18-
#![crate_type = "dylib"]
19-
#![crate_type = "rlib"]
2017
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2118
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2219
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_platform_intrinsics/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![crate_name = "rustc_platform_intrinsics"]
12-
#![crate_type = "dylib"]
13-
#![crate_type = "rlib"]
1411
#![deny(warnings)]
1512
#![allow(bad_style)]
1613

src/librustc_plugin/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@
6060
//! See the [`plugin` feature](../../unstable-book/language-features/plugin.html) of
6161
//! the Unstable Book for more examples.
6262
63-
#![crate_name = "rustc_plugin"]
64-
#![crate_type = "dylib"]
65-
#![crate_type = "rlib"]
6663
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
6764
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
6865
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_privacy/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![crate_name = "rustc_privacy"]
12-
#![crate_type = "dylib"]
13-
#![crate_type = "rlib"]
1411
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1512
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
1613
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_resolve/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![crate_name = "rustc_resolve"]
12-
#![crate_type = "dylib"]
13-
#![crate_type = "rlib"]
1411
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1512
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
1613
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_save_analysis/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![crate_name = "rustc_save_analysis"]
12-
#![crate_type = "dylib"]
13-
#![crate_type = "rlib"]
1411
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1512
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
1613
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_trans/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
//!
1515
//! This API is completely unstable and subject to change.
1616
17-
#![crate_name = "rustc_trans"]
18-
#![crate_type = "dylib"]
19-
#![crate_type = "rlib"]
2017
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2118
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2219
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_trans_utils/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
//!
1313
//! This API is completely unstable and subject to change.
1414
15-
#![crate_name = "rustc_trans_utils"]
16-
#![crate_type = "dylib"]
17-
#![crate_type = "rlib"]
1815
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1916
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2017
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustc_typeck/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ This API is completely unstable and subject to change.
6363
6464
*/
6565

66-
#![crate_name = "rustc_typeck"]
67-
#![crate_type = "dylib"]
68-
#![crate_type = "rlib"]
6966
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
7067
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
7168
html_root_url = "https://doc.rust-lang.org/nightly/")]

src/librustdoc/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![crate_name = "rustdoc"]
12-
#![crate_type = "dylib"]
13-
#![crate_type = "rlib"]
1411
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1512
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
1613
html_root_url = "https://doc.rust-lang.org/nightly/",

src/libserialize/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
Core encoding and decoding interfaces.
1515
*/
1616

17-
#![crate_name = "serialize"]
18-
#![crate_type = "rlib"]
19-
#![crate_type = "dylib"]
2017
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2118
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2219
html_root_url = "https://doc.rust-lang.org/nightly/",

src/libstd/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,7 @@
209209
//! [other]: #what-is-in-the-standard-library-documentation
210210
//! [primitive types]: ../book/first-edition/primitive-types.html
211211
212-
#![crate_name = "std"]
213212
#![stable(feature = "rust1", since = "1.0.0")]
214-
#![crate_type = "rlib"]
215-
#![crate_type = "dylib"]
216213
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
217214
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
218215
html_root_url = "https://doc.rust-lang.org/nightly/",

0 commit comments

Comments
 (0)