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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 3 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 3 deletions
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

Lines changed: 0 additions & 3 deletions
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

Lines changed: 0 additions & 3 deletions
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

Lines changed: 0 additions & 2 deletions
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",

0 commit comments

Comments
 (0)