1
Fork 0

Fix up some tests for feature staging

This commit is contained in:
Brian Anderson 2015-01-16 10:25:13 -08:00
parent 11f4d62a06
commit e62c37eb8d
13 changed files with 14 additions and 7 deletions

View file

@ -10,7 +10,7 @@
#![deny(dead_code)] #![deny(dead_code)]
#![allow(unreachable_code)] #![allow(unreachable_code)]
#![allow(unstable)] #![feature(unnamed_feature)]
#[macro_use] extern crate core; #[macro_use] extern crate core;

View file

@ -9,7 +9,7 @@
// except according to those terms. // except according to those terms.
#![deny(unused_variables)] #![deny(unused_variables)]
#![allow(unstable)] #![feature(unnamed_feature)]
fn main() { fn main() {
for _ in range(1is, 101) { for _ in range(1is, 101) {

View file

@ -9,7 +9,7 @@
// except according to those terms. // except according to those terms.
#![deny(improper_ctypes)] #![deny(improper_ctypes)]
#![allow(unstable)] #![feature(unnamed_feature)]
extern crate libc; extern crate libc;

View file

@ -14,6 +14,7 @@
#![allow(non_upper_case_globals)] #![allow(non_upper_case_globals)]
#![allow(missing_copy_implementations)] #![allow(missing_copy_implementations)]
#![deny(dead_code)] #![deny(dead_code)]
#![feature(unnamed_feature)]
#![crate_type="lib"] #![crate_type="lib"]

View file

@ -11,6 +11,7 @@
#![allow(unused_variables)] #![allow(unused_variables)]
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
#![deny(dead_code)] #![deny(dead_code)]
#![feature(unnamed_feature)]
#![crate_type="lib"] #![crate_type="lib"]

View file

@ -11,6 +11,7 @@
#![allow(unused_variables)] #![allow(unused_variables)]
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
#![deny(dead_code)] #![deny(dead_code)]
#![feature(unnamed_feature)]
extern crate libc; extern crate libc;

View file

@ -11,6 +11,7 @@
#![deny(exceeding_bitshifts)] #![deny(exceeding_bitshifts)]
#![allow(unused_variables)] #![allow(unused_variables)]
#![allow(dead_code)] #![allow(dead_code)]
#![feature(unnamed_feature)]
fn main() { fn main() {
let n = 1u8 << 7; let n = 1u8 << 7;

View file

@ -8,8 +8,8 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![forbid(unstable)] #![forbid(deprecated)]
#[allow(unstable)] //~ ERROR allow(unstable) overruled by outer forbid(unstable) #[allow(deprecated)] //~ ERROR allow(deprecated) overruled by outer forbid(deprecated)
fn main() { fn main() {
} }

View file

@ -12,7 +12,7 @@
#![deny(unused_extern_crates)] #![deny(unused_extern_crates)]
#![allow(unused_variables)] #![allow(unused_variables)]
#![allow(unstable)] #![feature(unnamed_feature)]
extern crate libc; //~ ERROR: unused extern crate extern crate libc; //~ ERROR: unused extern crate

View file

@ -12,6 +12,7 @@
#![allow(dead_code)] #![allow(dead_code)]
#![deny(non_snake_case)] #![deny(non_snake_case)]
#![feature(unnamed_feature)]
use std::io::File; use std::io::File;
use std::io::IoError; use std::io::IoError;

View file

@ -11,6 +11,7 @@
#![deny(unused_variables)] #![deny(unused_variables)]
#![deny(unused_assignments)] #![deny(unused_assignments)]
#![allow(dead_code, non_camel_case_types)] #![allow(dead_code, non_camel_case_types)]
#![feature(unnamed_feature)]
fn f1(x: isize) { fn f1(x: isize) {
//~^ ERROR unused variable: `x` //~^ ERROR unused variable: `x`

View file

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
#![deny(unstable)] #![deny(unstable)]
#![feature(unnamed_feature)]
use std::simd; use std::simd;

View file

@ -9,7 +9,7 @@
// except according to those terms. // except according to those terms.
#![deny(unused_attributes)] #![deny(unused_attributes)]
#![allow(dead_code, unused_imports)] #![allow(dead_code, unused_imports)]
#![allow(unstable)] #![feature(unnamed_feature)]
#![foo] //~ ERROR unused attribute #![foo] //~ ERROR unused attribute