Skip to content

Commit 451e8c1

Browse files
brsonalexcrichton
authored andcommitted
Convert most code to new inner attribute syntax.
Closes #2569
1 parent c6bbb95 commit 451e8c1

File tree

327 files changed

+646
-643
lines changed

Some content is hidden

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

327 files changed

+646
-643
lines changed

src/compiletest/compiletest.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[crate_type = "bin"];
12-
#[feature(phase)];
11+
#![crate_type = "bin"]
12+
#![feature(phase)]
1313

14-
#[allow(non_camel_case_types)];
15-
#[deny(warnings)];
14+
#![allow(non_camel_case_types)]
15+
#![deny(warnings)]
1616

1717
extern crate test;
1818
extern crate getopts;

src/libarena/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
//! of individual objects while the arena itself is still alive. The benefit
1616
//! of an arena is very fast allocation; just a pointer bump.
1717
18-
#[crate_id = "arena#0.10-pre"];
19-
#[crate_type = "rlib"];
20-
#[crate_type = "dylib"];
21-
#[license = "MIT/ASL2"];
22-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
23-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
24-
html_root_url = "http://static.rust-lang.org/doc/master")];
25-
#[allow(missing_doc)];
26-
#[feature(managed_boxes)];
18+
#![crate_id = "arena#0.10-pre"]
19+
#![crate_type = "rlib"]
20+
#![crate_type = "dylib"]
21+
#![license = "MIT/ASL2"]
22+
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
23+
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
24+
html_root_url = "http://static.rust-lang.org/doc/master")]
25+
#![allow(missing_doc)]
26+
#![feature(managed_boxes)]
2727

2828
extern crate collections;
2929

src/libcollections/bitv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[allow(missing_doc)];
11+
#![allow(missing_doc)]
1212

1313

1414
use std::cmp;

src/libcollections/lib.rs

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

15-
#[crate_id = "collections#0.10-pre"];
16-
#[crate_type = "rlib"];
17-
#[crate_type = "dylib"];
18-
#[license = "MIT/ASL2"];
19-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
20-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
21-
html_root_url = "http://static.rust-lang.org/doc/master")];
15+
#![crate_id = "collections#0.10-pre"]
16+
#![crate_type = "rlib"]
17+
#![crate_type = "dylib"]
18+
#![license = "MIT/ASL2"]
19+
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
20+
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
21+
html_root_url = "http://static.rust-lang.org/doc/master")]
2222

23-
#[feature(macro_rules, managed_boxes, default_type_params, phase)];
23+
#![feature(macro_rules, managed_boxes, default_type_params, phase)]
2424

2525
extern crate rand;
2626

src/libcollections/priority_queue.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! A priority queue implemented with a binary heap
1212
13-
#[allow(missing_doc)];
13+
#![allow(missing_doc)]
1414

1515
use std::clone::Clone;
1616
use std::mem::{move_val_init, init, replace, swap};

src/libcollections/smallintmap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* are O(highest integer key).
1414
*/
1515

16-
#[allow(missing_doc)];
16+
#![allow(missing_doc)]
1717

1818
use std::iter::{Enumerate, FilterMap, Rev};
1919
use std::mem::replace;

src/libflate/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ Simple compression
1414
1515
*/
1616

17-
#[crate_id = "flate#0.10-pre"];
18-
#[crate_type = "rlib"];
19-
#[crate_type = "dylib"];
20-
#[license = "MIT/ASL2"];
21-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
22-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
23-
html_root_url = "http://static.rust-lang.org/doc/master")];
24-
#[feature(phase)];
25-
#[deny(deprecated_owned_vector)];
17+
#![crate_id = "flate#0.10-pre"]
18+
#![crate_type = "rlib"]
19+
#![crate_type = "dylib"]
20+
#![license = "MIT/ASL2"]
21+
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
22+
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
23+
html_root_url = "http://static.rust-lang.org/doc/master")]
24+
#![feature(phase)]
25+
#![deny(deprecated_owned_vector)]
2626

2727
#[cfg(test)] #[phase(syntax, link)] extern crate log;
2828

src/libfourcc/lib.rs

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

42-
#[crate_id = "fourcc#0.10-pre"];
43-
#[crate_type = "rlib"];
44-
#[crate_type = "dylib"];
45-
#[license = "MIT/ASL2"];
46-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
47-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
48-
html_root_url = "http://static.rust-lang.org/doc/master")];
49-
50-
#[deny(deprecated_owned_vector)];
51-
#[feature(macro_registrar, managed_boxes)];
42+
#![crate_id = "fourcc#0.10-pre"]
43+
#![crate_type = "rlib"]
44+
#![crate_type = "dylib"]
45+
#![license = "MIT/ASL2"]
46+
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
47+
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
48+
html_root_url = "http://static.rust-lang.org/doc/master")]
49+
50+
#![deny(deprecated_owned_vector)]
51+
#![feature(macro_registrar, managed_boxes)]
5252

5353
extern crate syntax;
5454

src/libgetopts/lib.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,16 @@
7676
//! }
7777
//! ~~~
7878
79-
#[crate_id = "getopts#0.10-pre"];
80-
#[crate_type = "rlib"];
81-
#[crate_type = "dylib"];
82-
#[license = "MIT/ASL2"];
83-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
84-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
85-
html_root_url = "http://static.rust-lang.org/doc/master")];
86-
#[feature(globs, phase)];
87-
#[deny(missing_doc)];
88-
#[deny(deprecated_owned_vector)];
79+
#![crate_id = "getopts#0.10-pre"]
80+
#![crate_type = "rlib"]
81+
#![crate_type = "dylib"]
82+
#![license = "MIT/ASL2"]
83+
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
84+
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
85+
html_root_url = "http://static.rust-lang.org/doc/master")]
86+
#![feature(globs, phase)]
87+
#![deny(missing_doc)]
88+
#![deny(deprecated_owned_vector)]
8989

9090
#[cfg(test)] #[phase(syntax, link)] extern crate log;
9191

src/libglob/lib.rs

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

26-
#[crate_id = "glob#0.10-pre"];
27-
#[crate_type = "rlib"];
28-
#[crate_type = "dylib"];
29-
#[license = "MIT/ASL2"];
30-
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
31-
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
32-
html_root_url = "http://static.rust-lang.org/doc/master")];
26+
#![crate_id = "glob#0.10-pre"]
27+
#![crate_type = "rlib"]
28+
#![crate_type = "dylib"]
29+
#![license = "MIT/ASL2"]
30+
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
31+
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
32+
html_root_url = "http://static.rust-lang.org/doc/master")]
3333

3434
use std::cell::Cell;
3535
use std::{cmp, os, path};

0 commit comments

Comments
 (0)