Skip to content

Commit ab54f4b

Browse files
committed
rustc: Remove #![unstable] annotation
These are now no longer necessary with `-Z force-unstable-if-unmarked`
1 parent af0e16c commit ab54f4b

File tree

34 files changed

+121
-97
lines changed

34 files changed

+121
-97
lines changed

src/libarena/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
//! objects of a single type.
2020
2121
#![crate_name = "arena"]
22-
#![unstable(feature = "rustc_private", issue = "27812")]
22+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
2323
#![crate_type = "rlib"]
2424
#![crate_type = "dylib"]
2525
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -32,7 +32,7 @@
3232
#![feature(core_intrinsics)]
3333
#![feature(dropck_eyepatch)]
3434
#![feature(generic_param_attrs)]
35-
#![feature(staged_api)]
35+
#![cfg_attr(stage0, feature(staged_api))]
3636
#![cfg_attr(test, feature(test))]
3737

3838
#![allow(deprecated)]

src/libflate/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! [mz]: https://code.google.com/p/miniz/
1616
1717
#![crate_name = "flate"]
18-
#![unstable(feature = "rustc_private", issue = "27812")]
18+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
1919
#![crate_type = "rlib"]
2020
#![crate_type = "dylib"]
2121
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -25,7 +25,7 @@
2525
#![deny(warnings)]
2626

2727
#![feature(libc)]
28-
#![feature(staged_api)]
28+
#![cfg_attr(stage0, feature(staged_api))]
2929
#![feature(unique)]
3030
#![cfg_attr(test, feature(rand))]
3131

src/libfmt_macros/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//! generated instead.
1616
1717
#![crate_name = "fmt_macros"]
18-
#![unstable(feature = "rustc_private", issue = "27812")]
18+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
1919
#![crate_type = "rlib"]
2020
#![crate_type = "dylib"]
2121
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -25,7 +25,7 @@
2525
test(attr(deny(warnings))))]
2626
#![deny(warnings)]
2727

28-
#![feature(staged_api)]
28+
#![cfg_attr(stage0, feature(staged_api))]
2929
#![feature(unicode)]
3030

3131
pub use self::Piece::*;

src/libgetopts/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@
7878
//! ```
7979
8080
#![crate_name = "getopts"]
81-
#![unstable(feature = "rustc_private",
81+
#![cfg_attr(stage0, unstable(feature = "rustc_private",
8282
reason = "use the crates.io `getopts` library instead",
83-
issue = "27812")]
83+
issue = "27812"))]
8484
#![crate_type = "rlib"]
8585
#![crate_type = "dylib"]
8686
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -91,7 +91,7 @@
9191

9292
#![deny(missing_docs)]
9393
#![deny(warnings)]
94-
#![feature(staged_api)]
94+
#![cfg_attr(stage0, feature(staged_api))]
9595

9696
use self::Name::*;
9797
use self::HasArg::*;

src/libgraphviz/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@
284284
//! * [DOT language](http://www.graphviz.org/doc/info/lang.html)
285285
286286
#![crate_name = "graphviz"]
287-
#![unstable(feature = "rustc_private", issue = "27812")]
288-
#![feature(staged_api)]
287+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
288+
#![cfg_attr(stage0, feature(staged_api))]
289289
#![crate_type = "rlib"]
290290
#![crate_type = "dylib"]
291291
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libproc_macro_plugin/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
//! }
7373
//! ```
7474
#![crate_name = "proc_macro_plugin"]
75-
#![unstable(feature = "rustc_private", issue = "27812")]
75+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
7676
#![feature(plugin_registrar)]
7777
#![crate_type = "dylib"]
7878
#![crate_type = "rlib"]
@@ -81,9 +81,9 @@
8181
html_root_url = "https://doc.rust-lang.org/nightly/")]
8282
#![deny(warnings)]
8383

84-
#![feature(staged_api)]
84+
#![cfg_attr(stage0, feature(staged_api))]
8585
#![feature(rustc_diagnostic_macros)]
86-
#![feature(rustc_private)]
86+
#![cfg_attr(stage0, feature(rustc_private))]
8787

8888
extern crate rustc_plugin;
8989
extern crate syntax;

src/librustc/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
//! This API is completely unstable and subject to change.
1616
1717
#![crate_name = "rustc"]
18-
#![unstable(feature = "rustc_private", issue = "27812")]
1918
#![crate_type = "dylib"]
2019
#![crate_type = "rlib"]
2120
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -36,15 +35,17 @@
3635
#![feature(nonzero)]
3736
#![feature(quote)]
3837
#![feature(rustc_diagnostic_macros)]
39-
#![feature(rustc_private)]
4038
#![feature(slice_patterns)]
4139
#![feature(specialization)]
42-
#![feature(staged_api)]
4340
#![feature(unboxed_closures)]
4441
#![feature(discriminant_value)]
4542
#![feature(sort_unstable)]
4643
#![feature(trace_macros)]
4744

45+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
46+
#![cfg_attr(stage0, feature(rustc_private))]
47+
#![cfg_attr(stage0, feature(staged_api))]
48+
4849
#![recursion_limit="128"]
4950

5051
extern crate arena;

src/librustc_back/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
//! build speedups.
2323
2424
#![crate_name = "rustc_back"]
25-
#![unstable(feature = "rustc_private", issue = "27812")]
2625
#![crate_type = "dylib"]
2726
#![crate_type = "rlib"]
2827
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -34,10 +33,12 @@
3433
#![feature(const_fn)]
3534
#![feature(libc)]
3635
#![feature(rand)]
37-
#![feature(rustc_private)]
38-
#![feature(staged_api)]
3936
#![cfg_attr(test, feature(rand))]
4037

38+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
39+
#![cfg_attr(stage0, feature(rustc_private))]
40+
#![cfg_attr(stage0, feature(staged_api))]
41+
4142
extern crate syntax;
4243
extern crate libc;
4344
extern crate serialize;

src/librustc_bitflags/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
#![crate_name = "rustc_bitflags"]
1313
#![feature(associated_consts)]
14-
#![feature(staged_api)]
1514
#![crate_type = "rlib"]
1615
#![no_std]
17-
#![unstable(feature = "rustc_private", issue = "27812")]
1816
#![deny(warnings)]
17+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
18+
#![cfg_attr(stage0, feature(staged_api))]
1919

2020
//! A typesafe bitmask flag generator.
2121

src/librustc_borrowck/lib.rs

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

1111
#![crate_name = "rustc_borrowck"]
12-
#![unstable(feature = "rustc_private", issue = "27812")]
1312
#![crate_type = "dylib"]
1413
#![crate_type = "rlib"]
1514
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -21,10 +20,13 @@
2120

2221
#![feature(quote)]
2322
#![feature(rustc_diagnostic_macros)]
24-
#![feature(rustc_private)]
25-
#![feature(staged_api)]
2623
#![feature(associated_consts)]
2724
#![feature(nonzero)]
25+
26+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
27+
#![cfg_attr(stage0, feature(rustc_private))]
28+
#![cfg_attr(stage0, feature(staged_api))]
29+
2830
#[macro_use] extern crate log;
2931
#[macro_use] extern crate syntax;
3032
extern crate syntax_pos;

src/librustc_const_eval/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,24 @@
1515
//! This API is completely unstable and subject to change.
1616
1717
#![crate_name = "rustc_const_eval"]
18-
#![unstable(feature = "rustc_private", issue = "27812")]
1918
#![crate_type = "dylib"]
2019
#![crate_type = "rlib"]
2120
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2221
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2322
html_root_url = "https://doc.rust-lang.org/nightly/")]
2423
#![deny(warnings)]
2524

26-
#![feature(rustc_private)]
27-
#![feature(staged_api)]
2825
#![feature(rustc_diagnostic_macros)]
2926
#![feature(slice_patterns)]
3027
#![feature(box_patterns)]
3128
#![feature(box_syntax)]
3229
#![feature(const_fn)]
3330
#![feature(i128_type)]
3431

32+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
33+
#![cfg_attr(stage0, feature(rustc_private))]
34+
#![cfg_attr(stage0, feature(staged_api))]
35+
3536
extern crate arena;
3637
#[macro_use] extern crate syntax;
3738
#[macro_use] extern crate log;

src/librustc_const_math/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,21 @@
1515
//! This API is completely unstable and subject to change.
1616
1717
#![crate_name = "rustc_const_math"]
18-
#![unstable(feature = "rustc_private", issue = "27812")]
1918
#![crate_type = "dylib"]
2019
#![crate_type = "rlib"]
2120
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
2221
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2322
html_root_url = "https://doc.rust-lang.org/nightly/")]
2423
#![deny(warnings)]
2524

26-
#![feature(rustc_private)]
27-
#![feature(staged_api)]
2825
#![feature(const_fn)]
2926
#![feature(i128)]
3027
#![feature(i128_type)]
3128

29+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
30+
#![cfg_attr(stage0, feature(rustc_private))]
31+
#![cfg_attr(stage0, feature(staged_api))]
32+
3233
extern crate syntax;
3334

3435
extern crate serialize as rustc_serialize; // used by deriving

src/librustc_data_structures/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
//! This API is completely unstable and subject to change.
1818
1919
#![crate_name = "rustc_data_structures"]
20-
#![unstable(feature = "rustc_private", issue = "27812")]
2120
#![crate_type = "dylib"]
2221
#![crate_type = "rlib"]
2322
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -28,8 +27,6 @@
2827
#![feature(shared)]
2928
#![feature(collections_range)]
3029
#![feature(nonzero)]
31-
#![feature(rustc_private)]
32-
#![feature(staged_api)]
3330
#![feature(unboxed_closures)]
3431
#![feature(fn_traits)]
3532
#![feature(untagged_unions)]
@@ -42,6 +39,10 @@
4239
#![feature(manually_drop)]
4340
#![feature(struct_field_attributes)]
4441

42+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
43+
#![cfg_attr(stage0, feature(rustc_private))]
44+
#![cfg_attr(stage0, feature(staged_api))]
45+
4546
#![cfg_attr(unix, feature(libc))]
4647
#![cfg_attr(test, feature(test))]
4748

src/librustc_driver/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
//! This API is completely unstable and subject to change.
1616
1717
#![crate_name = "rustc_driver"]
18-
#![unstable(feature = "rustc_private", issue = "27812")]
1918
#![crate_type = "dylib"]
2019
#![crate_type = "rlib"]
2120
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -28,9 +27,11 @@
2827
#![feature(libc)]
2928
#![feature(quote)]
3029
#![feature(rustc_diagnostic_macros)]
31-
#![feature(rustc_private)]
3230
#![feature(set_stdio)]
33-
#![feature(staged_api)]
31+
32+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
33+
#![cfg_attr(stage0, feature(rustc_private))]
34+
#![cfg_attr(stage0, feature(staged_api))]
3435

3536
extern crate arena;
3637
extern crate getopts;

src/librustc_errors/lib.rs

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

1111
#![crate_name = "rustc_errors"]
12-
#![unstable(feature = "rustc_private", issue = "27812")]
1312
#![crate_type = "dylib"]
1413
#![crate_type = "rlib"]
1514
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -19,11 +18,13 @@
1918

2019
#![feature(custom_attribute)]
2120
#![allow(unused_attributes)]
22-
#![feature(rustc_private)]
23-
#![feature(staged_api)]
2421
#![feature(range_contains)]
2522
#![feature(libc)]
2623

24+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
25+
#![cfg_attr(stage0, feature(rustc_private))]
26+
#![cfg_attr(stage0, feature(staged_api))]
27+
2728
extern crate term;
2829
extern crate libc;
2930
extern crate serialize as rustc_serialize;

src/librustc_incremental/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,21 @@
1111
//! Support for serializing the dep-graph and reloading it.
1212
1313
#![crate_name = "rustc_incremental"]
14-
#![unstable(feature = "rustc_private", issue = "27812")]
1514
#![crate_type = "dylib"]
1615
#![crate_type = "rlib"]
1716
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1817
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
1918
html_root_url = "https://doc.rust-lang.org/nightly/")]
2019
#![deny(warnings)]
2120

22-
#![feature(rustc_private)]
23-
#![feature(staged_api)]
2421
#![feature(rand)]
2522
#![feature(conservative_impl_trait)]
2623
#![feature(sort_unstable)]
2724

25+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
26+
#![cfg_attr(stage0, feature(rustc_private))]
27+
#![cfg_attr(stage0, feature(staged_api))]
28+
2829
extern crate graphviz;
2930
#[macro_use] extern crate rustc;
3031
extern crate rustc_data_structures;

src/librustc_lint/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
//! This API is completely unstable and subject to change.
2121
2222
#![crate_name = "rustc_lint"]
23-
#![unstable(feature = "rustc_private", issue = "27812")]
2423
#![crate_type = "dylib"]
2524
#![crate_type = "rlib"]
2625
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -34,9 +33,11 @@
3433
#![feature(i128_type)]
3534
#![feature(quote)]
3635
#![feature(rustc_diagnostic_macros)]
37-
#![feature(rustc_private)]
3836
#![feature(slice_patterns)]
39-
#![feature(staged_api)]
37+
38+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
39+
#![cfg_attr(stage0, feature(rustc_private))]
40+
#![cfg_attr(stage0, feature(staged_api))]
4041

4142
#[macro_use]
4243
extern crate syntax;

src/librustc_llvm/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#![allow(dead_code)]
1515

1616
#![crate_name = "rustc_llvm"]
17-
#![unstable(feature = "rustc_private", issue = "27812")]
1817
#![crate_type = "dylib"]
1918
#![crate_type = "rlib"]
2019
#![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
@@ -27,10 +26,12 @@
2726
#![feature(concat_idents)]
2827
#![feature(libc)]
2928
#![feature(link_args)]
30-
#![feature(staged_api)]
31-
#![feature(rustc_private)]
3229
#![feature(static_nobundle)]
3330

31+
#![cfg_attr(stage0, unstable(feature = "rustc_private", issue = "27812"))]
32+
#![cfg_attr(stage0, feature(rustc_private))]
33+
#![cfg_attr(stage0, feature(staged_api))]
34+
3435
extern crate libc;
3536
#[macro_use]
3637
#[no_link]

0 commit comments

Comments
 (0)