sprinkle feature gates here and there

This commit is contained in:
Jorge Aparicio 2016-03-21 02:23:03 -05:00
parent 0f02309e4b
commit aa7fe93d4a
25 changed files with 28 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#![feature(rustc_private)]
#![feature(str_char)]
#![feature(test)]
#![feature(question_mark)]
#![deny(warnings)]

View File

@ -77,6 +77,7 @@
#![feature(rustc_attrs)]
#![feature(staged_api)]
#![feature(unboxed_closures)]
#![feature(question_mark)]
#[macro_use]
mod macros;

View File

@ -295,6 +295,7 @@
#![cfg_attr(not(stage0), deny(warnings))]
#![feature(str_escape)]
#![feature(question_mark)]
use self::LabelText::*;

View File

@ -125,6 +125,7 @@
#![feature(copy_from_slice)]
#![feature(rustc_private)]
#![feature(staged_api)]
#![feature(question_mark)]
#![cfg_attr(test, feature(test))]

View File

@ -39,6 +39,7 @@
#![feature(slice_patterns)]
#![feature(staged_api)]
#![feature(str_char)]
#![feature(question_mark)]
#![cfg_attr(test, feature(test))]
extern crate arena;

View File

@ -38,6 +38,7 @@
#![feature(rustc_private)]
#![feature(staged_api)]
#![feature(step_by)]
#![feature(question_mark)]
#![cfg_attr(unix, feature(static_mutex))]
#![cfg_attr(test, feature(test, rand))]

View File

@ -25,6 +25,7 @@
#![feature(rustc_private)]
#![feature(staged_api)]
#![feature(question_mark)]
#[macro_use] extern crate log;
#[macro_use] extern crate syntax;

View File

@ -30,6 +30,7 @@
#![feature(rustc_private)]
#![feature(set_stdio)]
#![feature(staged_api)]
#![feature(question_mark)]
extern crate arena;
extern crate flate;

View File

@ -33,6 +33,7 @@
#![feature(slice_patterns)]
#![feature(staged_api)]
#![feature(str_char)]
#![feature(question_mark)]
extern crate serialize;
#[macro_use]

View File

@ -23,6 +23,7 @@
#![feature(rustc_diagnostic_macros)]
#![feature(rustc_private)]
#![feature(staged_api)]
#![feature(question_mark)]
#[macro_use] extern crate log;
#[macro_use] extern crate syntax;

View File

@ -23,6 +23,7 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
#![feature(box_patterns)]
#![feature(rustc_private)]
#![feature(staged_api)]
#![feature(question_mark)]
#[macro_use] extern crate log;
extern crate graphviz as dot;

View File

@ -36,6 +36,7 @@
#![feature(slice_patterns)]
#![feature(staged_api)]
#![feature(unicode)]
#![feature(question_mark)]
extern crate arena;
extern crate flate;

View File

@ -81,6 +81,7 @@ This API is completely unstable and subject to change.
#![feature(rustc_diagnostic_macros)]
#![feature(rustc_private)]
#![feature(staged_api)]
#![feature(question_mark)]
#[macro_use] extern crate log;
#[macro_use] extern crate syntax;

View File

@ -29,6 +29,7 @@
#![feature(std_panic)]
#![feature(test)]
#![feature(unicode)]
#![feature(question_mark)]
extern crate arena;
extern crate getopts;

View File

@ -34,6 +34,7 @@ Core encoding and decoding interfaces.
#![feature(staged_api)]
#![feature(str_char)]
#![feature(unicode)]
#![feature(question_mark)]
#![cfg_attr(test, feature(test))]
// test harness access

View File

@ -270,6 +270,7 @@
#![feature(unwind_attributes)]
#![feature(vec_push_all)]
#![feature(zero_one)]
#![feature(question_mark)]
// Issue# 30592: Systematically use alloc_system during stage0 since jemalloc
// might be unavailable or disabled

View File

@ -32,6 +32,7 @@
#![feature(str_char)]
#![feature(str_escape)]
#![feature(unicode)]
#![feature(question_mark)]
extern crate serialize;
extern crate term;

View File

@ -59,6 +59,7 @@
#![cfg_attr(windows, feature(libc))]
// Handle rustfmt skips
#![feature(custom_attribute)]
#![feature(question_mark)]
#![allow(unused_attributes)]
use std::io::prelude::*;

View File

@ -40,6 +40,7 @@
#![feature(rustc_private)]
#![feature(set_stdio)]
#![feature(staged_api)]
#![feature(question_mark)]
extern crate getopts;
extern crate term;

View File

@ -14,6 +14,7 @@
#![allow(unused_must_use)]
#![allow(unknown_features)]
#![feature(box_syntax)]
#![feature(question_mark)]
use std::fmt::{self, Write};
use std::usize;

View File

@ -10,6 +10,8 @@
// pretty-expanded FIXME #23616
#![feature(question_mark)]
use std::fs::File;
use std::io::{self, BufReader, Read};

View File

@ -12,6 +12,8 @@
// pretty-expanded FIXME #23616
#![feature(question_mark)]
use std::default::Default;
use std::io;
use std::fs;

View File

@ -11,6 +11,8 @@
// Regression test for #21400 which itself was extracted from
// stackoverflow.com/questions/28031155/is-my-borrow-checker-drunk/28031580
#![feature(question_mark)]
fn main() {
let mut t = Test;
assert_eq!(t.method1("one"), Ok(1));

View File

@ -9,6 +9,7 @@
// except according to those terms.
#![feature(rustc_private, rustdoc)]
#![feature(question_mark)]
extern crate syntax;
extern crate rustdoc;

View File

@ -13,6 +13,7 @@
#![feature(iter_arith)]
#![feature(rustc_private)]
#![feature(rustdoc)]
#![feature(question_mark)]
extern crate rustdoc;
extern crate rustc_back;