Skip to content

Commit 6f3a80e

Browse files
committed
Set allow(unstable) in crates that use unstable features
Lets them build with the -dev, -nightly, or snapshot compiler
1 parent 056f8f0 commit 6f3a80e

File tree

30 files changed

+31
-0
lines changed

30 files changed

+31
-0
lines changed

src/compiletest/compiletest.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#![feature(slicing_syntax, unboxed_closures)]
1414
#![feature(box_syntax)]
1515
#![feature(int_uint)]
16+
#![allow(unstable)]
1617

1718
#![deny(warnings)]
1819

src/liballoc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666

6767
#![no_std]
6868
#![allow(unknown_features)]
69+
#![allow(unstable)]
6970
#![feature(lang_items, unsafe_destructor)]
7071
#![feature(box_syntax)]
7172
#![feature(optin_builtin_traits)]

src/libarena/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#![feature(box_syntax)]
3535
#![allow(unknown_features)] #![feature(int_uint)]
3636
#![allow(missing_docs)]
37+
#![allow(unstable)]
3738

3839
extern crate alloc;
3940

src/libcollections/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#![feature(unboxed_closures)]
2929
#![feature(old_impl_check)]
3030
#![allow(unknown_features)] #![feature(int_uint)]
31+
#![allow(unstable)]
3132
#![no_std]
3233

3334
#[macro_use]

src/libcoretest/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#![feature(unboxed_closures)]
1313
#![feature(box_syntax)]
1414
#![allow(unknown_features)] #![feature(int_uint)]
15+
#![allow(unstable)]
1516

1617
extern crate core;
1718
extern crate test;

src/libflate/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#![unstable]
1919
#![staged_api]
2020
#![allow(unknown_features)] #![feature(int_uint)]
21+
#![allow(unstable)]
2122
#![crate_type = "rlib"]
2223
#![crate_type = "dylib"]
2324
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",

src/libfmt_macros/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#![feature(slicing_syntax)]
2828
#![allow(unknown_features)] #![feature(int_uint)]
29+
#![allow(unstable)]
2930

3031
pub use self::Piece::*;
3132
pub use self::Position::*;

src/libgetopts/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
html_playground_url = "http://play.rust-lang.org/")]
8989
#![feature(slicing_syntax)]
9090
#![allow(unknown_features)] #![feature(int_uint)]
91+
#![allow(unstable)]
9192
#![deny(missing_docs)]
9293

9394
#[cfg(test)] #[macro_use] extern crate log;

src/libgraphviz/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@
274274
html_root_url = "http://doc.rust-lang.org/nightly/")]
275275
#![feature(slicing_syntax)]
276276
#![allow(unknown_features)] #![feature(int_uint)]
277+
#![allow(unstable)]
277278

278279
use self::LabelText::*;
279280

src/liblibc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#![cfg_attr(not(feature = "cargo-build"), unstable)]
1414
#![cfg_attr(not(feature = "cargo-build"), staged_api)]
1515
#![allow(unknown_features)] #![feature(int_uint)]
16+
#![allow(unstable)]
1617
#![no_std]
1718
#![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png",
1819
html_favicon_url = "http://www.rust-lang.org/favicon.ico",

src/liblog/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
#![feature(slicing_syntax)]
170170
#![feature(box_syntax)]
171171
#![allow(unknown_features)] #![feature(int_uint)]
172+
#![allow(unstable)]
172173
#![deny(missing_docs)]
173174

174175
extern crate regex;

src/librand/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
html_root_url = "http://doc.rust-lang.org/nightly/",
2424
html_playground_url = "http://play.rust-lang.org/")]
2525
#![allow(unknown_features)] #![feature(int_uint)]
26+
#![allow(unstable)]
2627
#![no_std]
2728
#![unstable]
2829
#![staged_api]

src/librbml/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#![allow(unknown_features)]
2828
#![feature(slicing_syntax)]
2929
#![allow(unknown_features)] #![feature(int_uint)]
30+
#![allow(unstable)]
3031

3132
extern crate serialize;
3233
#[macro_use] extern crate log;

src/libregex/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
html_playground_url = "http://play.rust-lang.org/")]
2525

2626
#![allow(unknown_features)]
27+
#![allow(unstable)]
2728
#![feature(slicing_syntax)]
2829
#![feature(box_syntax)]
2930
#![allow(unknown_features)] #![feature(int_uint)]

src/librustc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#![feature(box_syntax)]
3030
#![allow(unknown_features)] #![feature(int_uint)]
3131
#![feature(rustc_diagnostic_macros)]
32+
#![allow(unstable)]
3233

3334
extern crate arena;
3435
extern crate flate;

src/librustc_back/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#![allow(unknown_features)]
3333
#![feature(slicing_syntax, box_syntax)]
3434
#![allow(unknown_features)] #![feature(int_uint)]
35+
#![allow(unstable)]
3536

3637
extern crate syntax;
3738
extern crate serialize;

src/librustc_borrowck/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#![feature(rustc_diagnostic_macros)]
2424
#![allow(unknown_features)] #![feature(int_uint)]
2525
#![allow(non_camel_case_types)]
26+
#![allow(unstable)]
2627

2728
#[macro_use] extern crate log;
2829
#[macro_use] extern crate syntax;

src/librustc_driver/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#![feature(box_syntax)]
3030
#![feature(rustc_diagnostic_macros)]
3131
#![allow(unknown_features)] #![feature(int_uint)]
32+
#![allow(unstable)]
3233

3334
extern crate arena;
3435
extern crate flate;

src/librustc_llvm/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#![feature(link_args)]
2727
#![feature(box_syntax)]
2828
#![allow(unknown_features)] #![feature(int_uint)]
29+
#![allow(unstable)]
2930

3031
extern crate libc;
3132
#[macro_use] #[no_link] extern crate rustc_bitflags;

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#![feature(slicing_syntax)]
2121
#![feature(rustc_diagnostic_macros)]
2222
#![allow(unknown_features)] #![feature(int_uint)]
23+
#![allow(unstable)]
2324

2425
#[macro_use] extern crate log;
2526
#[macro_use] extern crate syntax;

src/librustc_trans/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#![feature(box_syntax)]
3030
#![feature(rustc_diagnostic_macros)]
3131
#![allow(unknown_features)] #![feature(int_uint)]
32+
#![allow(unstable)]
3233

3334
extern crate arena;
3435
extern crate flate;

src/librustc_typeck/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ This API is completely unstable and subject to change.
7979
#![feature(rustc_diagnostic_macros)]
8080
#![allow(unknown_features)] #![feature(int_uint)]
8181
#![allow(non_camel_case_types)]
82+
#![allow(unstable)]
8283

8384
#[macro_use] extern crate log;
8485
#[macro_use] extern crate syntax;

src/librustdoc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#![feature(slicing_syntax)]
2121
#![feature(box_syntax)]
2222
#![allow(unknown_features)] #![feature(int_uint)]
23+
#![allow(unstable)]
2324

2425
extern crate arena;
2526
extern crate getopts;

src/libserialize/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Core encoding and decoding interfaces.
2828
#![feature(old_impl_check)]
2929
#![feature(slicing_syntax)]
3030
#![allow(unknown_features)] #![feature(int_uint)]
31+
#![allow(unstable)]
3132

3233
// test harness access
3334
#[cfg(test)] extern crate test;

src/libstd/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@
112112
#![feature(old_impl_check)]
113113
#![feature(optin_builtin_traits)]
114114
#![feature(int_uint)]
115+
#![feature(int_uint)]
116+
#![allow(unstable)]
115117

116118
// Don't link to std. We are std.
117119
#![no_std]

src/libsyntax/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#![feature(box_syntax)]
2929
#![feature(quote, unsafe_destructor)]
3030
#![allow(unknown_features)] #![feature(int_uint)]
31+
#![allow(unstable)]
3132

3233
extern crate arena;
3334
extern crate fmt_macros;

src/libterm/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#![feature(slicing_syntax)]
5353
#![feature(box_syntax)]
5454
#![allow(unknown_features)] #![feature(int_uint)]
55+
#![allow(unstable)]
5556
#![deny(missing_docs)]
5657

5758
#[macro_use] extern crate log;

src/libtest/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#![feature(asm, slicing_syntax)]
3636
#![feature(box_syntax)]
3737
#![allow(unknown_features)] #![feature(int_uint)]
38+
#![allow(unstable)]
3839

3940
extern crate getopts;
4041
extern crate regex;

src/libunicode/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#![no_std]
3232
#![feature(slicing_syntax)]
3333
#![allow(unknown_features)] #![feature(int_uint)]
34+
#![allow(unstable)]
3435

3536
extern crate core;
3637

src/rustbook/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
#![feature(slicing_syntax, box_syntax)]
12+
#![allow(unstable)]
1213

1314
extern crate regex;
1415

0 commit comments

Comments
 (0)