Fix up some tests for feature staging
This commit is contained in:
parent
11f4d62a06
commit
e62c37eb8d
13 changed files with 14 additions and 7 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
#![deny(dead_code)]
|
||||
#![allow(unreachable_code)]
|
||||
#![allow(unstable)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
#[macro_use] extern crate core;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
#![deny(unused_variables)]
|
||||
#![allow(unstable)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
fn main() {
|
||||
for _ in range(1is, 101) {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
#![deny(improper_ctypes)]
|
||||
#![allow(unstable)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#![allow(non_upper_case_globals)]
|
||||
#![allow(missing_copy_implementations)]
|
||||
#![deny(dead_code)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
#![crate_type="lib"]
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#![allow(unused_variables)]
|
||||
#![allow(non_camel_case_types)]
|
||||
#![deny(dead_code)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
#![crate_type="lib"]
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#![allow(unused_variables)]
|
||||
#![allow(non_camel_case_types)]
|
||||
#![deny(dead_code)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#![deny(exceeding_bitshifts)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(dead_code)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
fn main() {
|
||||
let n = 1u8 << 7;
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// 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() {
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#![deny(unused_extern_crates)]
|
||||
#![allow(unused_variables)]
|
||||
#![allow(unstable)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
extern crate libc; //~ ERROR: unused extern crate
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#![allow(dead_code)]
|
||||
#![deny(non_snake_case)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
use std::io::File;
|
||||
use std::io::IoError;
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#![deny(unused_variables)]
|
||||
#![deny(unused_assignments)]
|
||||
#![allow(dead_code, non_camel_case_types)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
fn f1(x: isize) {
|
||||
//~^ ERROR unused variable: `x`
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
#![deny(unstable)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
use std::simd;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
#![deny(unused_attributes)]
|
||||
#![allow(dead_code, unused_imports)]
|
||||
#![allow(unstable)]
|
||||
#![feature(unnamed_feature)]
|
||||
|
||||
#![foo] //~ ERROR unused attribute
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue