Skip to content

Commit e44c2b9

Browse files
committed
Add #[crate_name] attributes as necessary
1 parent c956b70 commit e44c2b9

File tree

34 files changed

+102
-40
lines changed

34 files changed

+102
-40
lines changed

src/liballoc/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
//! by libc malloc/free. The `libc_heap` module is defined to be wired up to
6161
//! the system malloc/free.
6262
63-
#![crate_id = "alloc#0.11.0"]
63+
#![crate_id = "alloc#0.11.0"] // NOTE: remove after a stage0 snap
64+
#![crate_name = "alloc"]
6465
#![experimental]
6566
#![license = "MIT/ASL2"]
6667
#![crate_type = "rlib"]
@@ -70,6 +71,7 @@
7071

7172
#![no_std]
7273
#![feature(lang_items, phase, unsafe_destructor)]
74+
#![allow(unused_attribute)] // NOTE: remove after stage0
7375

7476
#[phase(plugin, link)]
7577
extern crate core;

src/libarena/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
//! more complex, slower Arena which can hold objects of any type.
2121
2222
#![crate_id = "arena#0.11.0"]
23+
#![crate_name = "arena"]
2324
#![experimental]
2425
#![crate_type = "rlib"]
2526
#![crate_type = "dylib"]
@@ -30,6 +31,7 @@
3031

3132
#![feature(unsafe_destructor)]
3233
#![allow(missing_doc)]
34+
#![allow(unused_attribute)] // NOTE: remove after stage0
3335

3436
use std::cell::{Cell, RefCell};
3537
use std::cmp;

src/libcollections/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
* Collection types.
1313
*/
1414

15-
#![crate_id = "collections#0.11.0"]
15+
#![crate_id = "collections#0.11.0"] // NOTE: remove after stage0
16+
#![crate_name = "collections"]
1617
#![experimental]
1718
#![crate_type = "rlib"]
1819
#![license = "MIT/ASL2"]
@@ -24,6 +25,7 @@
2425
#![feature(macro_rules, managed_boxes, default_type_params, phase, globs)]
2526
#![feature(unsafe_destructor)]
2627
#![no_std]
28+
#![allow(unused_attribute)] // NOTE: remove after stage0
2729

2830
#[phase(plugin, link)] extern crate core;
2931
extern crate alloc;

src/libcore/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
// separate crate, libcoretest, to avoid bizarre issues.
4949

5050
#![crate_id = "core#0.11.0"]
51+
#![crate_name = "core"]
5152
#![experimental]
5253
#![license = "MIT/ASL2"]
5354
#![crate_type = "rlib"]
@@ -60,6 +61,7 @@
6061
#![feature(globs, intrinsics, lang_items, macro_rules, managed_boxes, phase)]
6162
#![feature(simd, unsafe_destructor)]
6263
#![deny(missing_doc)]
64+
#![allow(unused_attribute)] // NOTE: remove after stage0
6365

6466
mod macros;
6567

src/libdebug/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
//! Additionally, it is not guaranteed that functionality such as reflection
1717
//! will persist into the future.
1818
19-
#![crate_id = "debug#0.11.0"]
19+
#![crate_id = "debug#0.11.0"] // NOTE: remove after stage0
20+
#![crate_name = "debug"]
2021
#![experimental]
2122
#![license = "MIT/ASL2"]
2223
#![crate_type = "rlib"]
@@ -27,6 +28,7 @@
2728
#![experimental]
2829
#![feature(managed_boxes, macro_rules)]
2930
#![allow(experimental)]
31+
#![allow(unused_attribute)] // NOTE: remove after stage0
3032

3133
pub mod fmt;
3234
pub mod reflect;

src/libflate/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Simple [DEFLATE][def]-based compression. This is a wrapper around the
1818
1919
*/
2020

21-
#![crate_id = "flate#0.11.0"]
21+
#![crate_id = "flate#0.11.0"] // NOTE: remove after stage0
22+
#![crate_name = "flate"]
2223
#![experimental]
2324
#![crate_type = "rlib"]
2425
#![crate_type = "dylib"]
@@ -27,6 +28,7 @@ Simple [DEFLATE][def]-based compression. This is a wrapper around the
2728
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2829
html_root_url = "http://doc.rust-lang.org/0.11.0/")]
2930
#![feature(phase)]
31+
#![allow(unused_attribute)] // NOTE: remove after stage0
3032

3133
#[cfg(test)] #[phase(plugin, link)] extern crate log;
3234

src/libfmt_macros/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
//! Parsing does not happen at runtime: structures of `std::fmt::rt` are
1515
//! generated instead.
1616
17-
#![crate_id = "fmt_macros#0.11.0"]
17+
#![crate_id = "fmt_macros#0.11.0"] // NOTE: remove after stage0c
18+
#![crate_name = "fmt_macros"]
1819
#![experimental]
1920
#![license = "MIT/ASL2"]
2021
#![crate_type = "rlib"]
2122
#![crate_type = "dylib"]
2223
#![feature(macro_rules, globs)]
24+
#![allow(unused_attribute)] // NOTE: remove after stage0
2325

2426
use std::char;
2527
use std::str;

src/libfourcc/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ fn main() {
3939
4040
*/
4141

42-
#![crate_id = "fourcc#0.11.0"]
42+
#![crate_id = "fourcc#0.11.0"] // NOTE: remove after stage0
43+
#![crate_name = "fourcc"]
4344
#![experimental]
4445
#![crate_type = "rlib"]
4546
#![crate_type = "dylib"]
4647
#![license = "MIT/ASL2"]
4748
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
4849
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
4950
html_root_url = "http://doc.rust-lang.org/0.11.0/")]
51+
#![allow(unused_attribute)] // NOTE: remove after stage0
5052

5153
#![feature(plugin_registrar, managed_boxes)]
5254

src/libgetopts/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
//! }
7777
//! ~~~
7878
79-
#![crate_id = "getopts#0.11.0"]
79+
#![crate_id = "getopts#0.11.0"] // NOTE: remove after stage0
80+
#![crate_name = "getopts"]
8081
#![experimental]
8182
#![crate_type = "rlib"]
8283
#![crate_type = "dylib"]
@@ -87,6 +88,7 @@
8788
html_playground_url = "http://play.rust-lang.org/")]
8889
#![feature(globs, phase)]
8990
#![deny(missing_doc)]
91+
#![allow(unused_attribute)] // NOTE: remove after stage0
9092

9193
#[cfg(test)] extern crate debug;
9294
#[cfg(test)] #[phase(plugin, link)] extern crate log;

src/libglob/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
* `glob`/`fnmatch` functions.
2424
*/
2525

26-
#![crate_id = "glob#0.11.0"]
26+
#![crate_id = "glob#0.11.0"] // NOTE: remove after stage0
27+
#![crate_name = "glob"]
2728
#![experimental]
2829
#![crate_type = "rlib"]
2930
#![crate_type = "dylib"]
@@ -32,6 +33,7 @@
3233
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
3334
html_root_url = "http://doc.rust-lang.org/0.11.0/",
3435
html_playground_url = "http://play.rust-lang.org/")]
36+
#![allow(unused_attribute)] // NOTE: remove after stage0
3537

3638
use std::cell::Cell;
3739
use std::{cmp, os, path};

0 commit comments

Comments
 (0)