From 6f3a80e4117af4e2c167101fb4fdba35d3e1f7eb Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 16 Jan 2015 22:33:24 -0800 Subject: [PATCH] Set allow(unstable) in crates that use unstable features Lets them build with the -dev, -nightly, or snapshot compiler --- src/compiletest/compiletest.rs | 1 + src/liballoc/lib.rs | 1 + src/libarena/lib.rs | 1 + src/libcollections/lib.rs | 1 + src/libcoretest/lib.rs | 1 + src/libflate/lib.rs | 1 + src/libfmt_macros/lib.rs | 1 + src/libgetopts/lib.rs | 1 + src/libgraphviz/lib.rs | 1 + src/liblibc/lib.rs | 1 + src/liblog/lib.rs | 1 + src/librand/lib.rs | 1 + src/librbml/lib.rs | 1 + src/libregex/lib.rs | 1 + src/librustc/lib.rs | 1 + src/librustc_back/lib.rs | 1 + src/librustc_borrowck/lib.rs | 1 + src/librustc_driver/lib.rs | 1 + src/librustc_llvm/lib.rs | 1 + src/librustc_resolve/lib.rs | 1 + src/librustc_trans/lib.rs | 1 + src/librustc_typeck/lib.rs | 1 + src/librustdoc/lib.rs | 1 + src/libserialize/lib.rs | 1 + src/libstd/lib.rs | 2 ++ src/libsyntax/lib.rs | 1 + src/libterm/lib.rs | 1 + src/libtest/lib.rs | 1 + src/libunicode/lib.rs | 1 + src/rustbook/main.rs | 1 + 30 files changed, 31 insertions(+) diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 802fb05796d6..f3514c6e7bc8 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -13,6 +13,7 @@ #![feature(slicing_syntax, unboxed_closures)] #![feature(box_syntax)] #![feature(int_uint)] +#![allow(unstable)] #![deny(warnings)] diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs index 6c8533060351..811e32e747df 100644 --- a/src/liballoc/lib.rs +++ b/src/liballoc/lib.rs @@ -66,6 +66,7 @@ #![no_std] #![allow(unknown_features)] +#![allow(unstable)] #![feature(lang_items, unsafe_destructor)] #![feature(box_syntax)] #![feature(optin_builtin_traits)] diff --git a/src/libarena/lib.rs b/src/libarena/lib.rs index e3d075c0f39b..7458cc60c15c 100644 --- a/src/libarena/lib.rs +++ b/src/libarena/lib.rs @@ -34,6 +34,7 @@ #![feature(box_syntax)] #![allow(unknown_features)] #![feature(int_uint)] #![allow(missing_docs)] +#![allow(unstable)] extern crate alloc; diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs index e222373ff598..797042c32161 100644 --- a/src/libcollections/lib.rs +++ b/src/libcollections/lib.rs @@ -28,6 +28,7 @@ #![feature(unboxed_closures)] #![feature(old_impl_check)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] #![no_std] #[macro_use] diff --git a/src/libcoretest/lib.rs b/src/libcoretest/lib.rs index 0d371dbe1537..0c7b72612fae 100644 --- a/src/libcoretest/lib.rs +++ b/src/libcoretest/lib.rs @@ -12,6 +12,7 @@ #![feature(unboxed_closures)] #![feature(box_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] extern crate core; extern crate test; diff --git a/src/libflate/lib.rs b/src/libflate/lib.rs index fb6c98515f7f..f0a2ab3d1d6c 100644 --- a/src/libflate/lib.rs +++ b/src/libflate/lib.rs @@ -18,6 +18,7 @@ #![unstable] #![staged_api] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] #![crate_type = "rlib"] #![crate_type = "dylib"] #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", diff --git a/src/libfmt_macros/lib.rs b/src/libfmt_macros/lib.rs index 85944ccc5517..0ff153274410 100644 --- a/src/libfmt_macros/lib.rs +++ b/src/libfmt_macros/lib.rs @@ -26,6 +26,7 @@ #![feature(slicing_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] pub use self::Piece::*; pub use self::Position::*; diff --git a/src/libgetopts/lib.rs b/src/libgetopts/lib.rs index 470ef6e7e57a..c2114d4c6df6 100644 --- a/src/libgetopts/lib.rs +++ b/src/libgetopts/lib.rs @@ -88,6 +88,7 @@ html_playground_url = "http://play.rust-lang.org/")] #![feature(slicing_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] #![deny(missing_docs)] #[cfg(test)] #[macro_use] extern crate log; diff --git a/src/libgraphviz/lib.rs b/src/libgraphviz/lib.rs index b48fe2e42786..2d7d88f0f35e 100644 --- a/src/libgraphviz/lib.rs +++ b/src/libgraphviz/lib.rs @@ -274,6 +274,7 @@ html_root_url = "http://doc.rust-lang.org/nightly/")] #![feature(slicing_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] use self::LabelText::*; diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index 7fb609b4c945..0ad18e253292 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -13,6 +13,7 @@ #![cfg_attr(not(feature = "cargo-build"), unstable)] #![cfg_attr(not(feature = "cargo-build"), staged_api)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] #![no_std] #![doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png", html_favicon_url = "http://www.rust-lang.org/favicon.ico", diff --git a/src/liblog/lib.rs b/src/liblog/lib.rs index a166dc369cb1..dbd884341278 100644 --- a/src/liblog/lib.rs +++ b/src/liblog/lib.rs @@ -169,6 +169,7 @@ #![feature(slicing_syntax)] #![feature(box_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] #![deny(missing_docs)] extern crate regex; diff --git a/src/librand/lib.rs b/src/librand/lib.rs index 8430ee81c321..853eb41d011b 100644 --- a/src/librand/lib.rs +++ b/src/librand/lib.rs @@ -23,6 +23,7 @@ html_root_url = "http://doc.rust-lang.org/nightly/", html_playground_url = "http://play.rust-lang.org/")] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] #![no_std] #![unstable] #![staged_api] diff --git a/src/librbml/lib.rs b/src/librbml/lib.rs index 6a7062a419e5..f28600e5e697 100644 --- a/src/librbml/lib.rs +++ b/src/librbml/lib.rs @@ -27,6 +27,7 @@ #![allow(unknown_features)] #![feature(slicing_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] extern crate serialize; #[macro_use] extern crate log; diff --git a/src/libregex/lib.rs b/src/libregex/lib.rs index 45f42336ceb4..002b74cf1efa 100644 --- a/src/libregex/lib.rs +++ b/src/libregex/lib.rs @@ -24,6 +24,7 @@ html_playground_url = "http://play.rust-lang.org/")] #![allow(unknown_features)] +#![allow(unstable)] #![feature(slicing_syntax)] #![feature(box_syntax)] #![allow(unknown_features)] #![feature(int_uint)] diff --git a/src/librustc/lib.rs b/src/librustc/lib.rs index a283fdf36a96..628690645514 100644 --- a/src/librustc/lib.rs +++ b/src/librustc/lib.rs @@ -29,6 +29,7 @@ #![feature(box_syntax)] #![allow(unknown_features)] #![feature(int_uint)] #![feature(rustc_diagnostic_macros)] +#![allow(unstable)] extern crate arena; extern crate flate; diff --git a/src/librustc_back/lib.rs b/src/librustc_back/lib.rs index d29a47b65b0a..d778b916b674 100644 --- a/src/librustc_back/lib.rs +++ b/src/librustc_back/lib.rs @@ -32,6 +32,7 @@ #![allow(unknown_features)] #![feature(slicing_syntax, box_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] extern crate syntax; extern crate serialize; diff --git a/src/librustc_borrowck/lib.rs b/src/librustc_borrowck/lib.rs index eedad75c89fe..4dd9b3ad2ef9 100644 --- a/src/librustc_borrowck/lib.rs +++ b/src/librustc_borrowck/lib.rs @@ -23,6 +23,7 @@ #![feature(rustc_diagnostic_macros)] #![allow(unknown_features)] #![feature(int_uint)] #![allow(non_camel_case_types)] +#![allow(unstable)] #[macro_use] extern crate log; #[macro_use] extern crate syntax; diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index 5b6c64c1beea..50ff4546c378 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -29,6 +29,7 @@ #![feature(box_syntax)] #![feature(rustc_diagnostic_macros)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] extern crate arena; extern crate flate; diff --git a/src/librustc_llvm/lib.rs b/src/librustc_llvm/lib.rs index 59676fa3504a..4c9a25f42fb7 100644 --- a/src/librustc_llvm/lib.rs +++ b/src/librustc_llvm/lib.rs @@ -26,6 +26,7 @@ #![feature(link_args)] #![feature(box_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] extern crate libc; #[macro_use] #[no_link] extern crate rustc_bitflags; diff --git a/src/librustc_resolve/lib.rs b/src/librustc_resolve/lib.rs index 22064a35058e..8c1e847748c3 100644 --- a/src/librustc_resolve/lib.rs +++ b/src/librustc_resolve/lib.rs @@ -20,6 +20,7 @@ #![feature(slicing_syntax)] #![feature(rustc_diagnostic_macros)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] #[macro_use] extern crate log; #[macro_use] extern crate syntax; diff --git a/src/librustc_trans/lib.rs b/src/librustc_trans/lib.rs index 4859598e63c7..c3e88e65b2fd 100644 --- a/src/librustc_trans/lib.rs +++ b/src/librustc_trans/lib.rs @@ -29,6 +29,7 @@ #![feature(box_syntax)] #![feature(rustc_diagnostic_macros)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] extern crate arena; extern crate flate; diff --git a/src/librustc_typeck/lib.rs b/src/librustc_typeck/lib.rs index 88fe88bf2654..47b5cd4b11e0 100644 --- a/src/librustc_typeck/lib.rs +++ b/src/librustc_typeck/lib.rs @@ -79,6 +79,7 @@ This API is completely unstable and subject to change. #![feature(rustc_diagnostic_macros)] #![allow(unknown_features)] #![feature(int_uint)] #![allow(non_camel_case_types)] +#![allow(unstable)] #[macro_use] extern crate log; #[macro_use] extern crate syntax; diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs index e6eed4806338..71bd53009af0 100644 --- a/src/librustdoc/lib.rs +++ b/src/librustdoc/lib.rs @@ -20,6 +20,7 @@ #![feature(slicing_syntax)] #![feature(box_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] extern crate arena; extern crate getopts; diff --git a/src/libserialize/lib.rs b/src/libserialize/lib.rs index 70aac61b6bf4..b24e1bd685f1 100644 --- a/src/libserialize/lib.rs +++ b/src/libserialize/lib.rs @@ -28,6 +28,7 @@ Core encoding and decoding interfaces. #![feature(old_impl_check)] #![feature(slicing_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] // test harness access #[cfg(test)] extern crate test; diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 2553bbdf5231..ddb8129630f7 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -112,6 +112,8 @@ #![feature(old_impl_check)] #![feature(optin_builtin_traits)] #![feature(int_uint)] +#![feature(int_uint)] +#![allow(unstable)] // Don't link to std. We are std. #![no_std] diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 096e96b003bb..fa675a9fcaae 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -28,6 +28,7 @@ #![feature(box_syntax)] #![feature(quote, unsafe_destructor)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] extern crate arena; extern crate fmt_macros; diff --git a/src/libterm/lib.rs b/src/libterm/lib.rs index 2117b68c08e5..027c5a1a7083 100644 --- a/src/libterm/lib.rs +++ b/src/libterm/lib.rs @@ -52,6 +52,7 @@ #![feature(slicing_syntax)] #![feature(box_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] #![deny(missing_docs)] #[macro_use] extern crate log; diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 30173368585d..b9e37156dc7a 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -35,6 +35,7 @@ #![feature(asm, slicing_syntax)] #![feature(box_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] extern crate getopts; extern crate regex; diff --git a/src/libunicode/lib.rs b/src/libunicode/lib.rs index 17607383beed..fbe912ced905 100644 --- a/src/libunicode/lib.rs +++ b/src/libunicode/lib.rs @@ -31,6 +31,7 @@ #![no_std] #![feature(slicing_syntax)] #![allow(unknown_features)] #![feature(int_uint)] +#![allow(unstable)] extern crate core; diff --git a/src/rustbook/main.rs b/src/rustbook/main.rs index 85b9a7d79dbf..ea72c653087d 100644 --- a/src/rustbook/main.rs +++ b/src/rustbook/main.rs @@ -9,6 +9,7 @@ // except according to those terms. #![feature(slicing_syntax, box_syntax)] +#![allow(unstable)] extern crate regex;