Skip to content

Commit a866c4e

Browse files
committed
Fix up some tests for feature staging
1 parent ef283b0 commit a866c4e

13 files changed

+14
-7
lines changed

src/test/compile-fail/fail-no-dead-code-core.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#![deny(dead_code)]
1212
#![allow(unreachable_code)]
13-
#![allow(unstable)]
13+
#![feature(unnamed_feature)]
1414

1515
#[macro_use] extern crate core;
1616

src/test/compile-fail/issue-17999.rs

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

1111
#![deny(unused_variables)]
12-
#![allow(unstable)]
12+
#![feature(unnamed_feature)]
1313

1414
fn main() {
1515
for _ in range(1is, 101) {

src/test/compile-fail/lint-ctypes.rs

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

1111
#![deny(improper_ctypes)]
12-
#![allow(unstable)]
12+
#![feature(unnamed_feature)]
1313

1414
extern crate libc;
1515

src/test/compile-fail/lint-dead-code-1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#![allow(non_upper_case_globals)]
1515
#![allow(missing_copy_implementations)]
1616
#![deny(dead_code)]
17+
#![feature(unnamed_feature)]
1718

1819
#![crate_type="lib"]
1920

src/test/compile-fail/lint-dead-code-3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#![allow(unused_variables)]
1212
#![allow(non_camel_case_types)]
1313
#![deny(dead_code)]
14+
#![feature(unnamed_feature)]
1415

1516
#![crate_type="lib"]
1617

src/test/compile-fail/lint-dead-code-4.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#![allow(unused_variables)]
1212
#![allow(non_camel_case_types)]
1313
#![deny(dead_code)]
14+
#![feature(unnamed_feature)]
1415

1516
extern crate libc;
1617

src/test/compile-fail/lint-exceeding-bitshifts.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#![deny(exceeding_bitshifts)]
1212
#![allow(unused_variables)]
1313
#![allow(dead_code)]
14+
#![feature(unnamed_feature)]
1415

1516
fn main() {
1617
let n = 1u8 << 7;

src/test/compile-fail/lint-forbid-attr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![forbid(unstable)]
11+
#![forbid(deprecated)]
1212

13-
#[allow(unstable)] //~ ERROR allow(unstable) overruled by outer forbid(unstable)
13+
#[allow(deprecated)] //~ ERROR allow(deprecated) overruled by outer forbid(deprecated)
1414
fn main() {
1515
}

src/test/compile-fail/lint-unused-extern-crate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#![deny(unused_extern_crates)]
1414
#![allow(unused_variables)]
15-
#![allow(unstable)]
15+
#![feature(unnamed_feature)]
1616

1717
extern crate libc; //~ ERROR: unused extern crate
1818

src/test/compile-fail/lint-uppercase-variables.rs

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

1313
#![allow(dead_code)]
1414
#![deny(non_snake_case)]
15+
#![feature(unnamed_feature)]
1516

1617
use std::io::File;
1718
use std::io::IoError;

src/test/compile-fail/liveness-unused.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#![deny(unused_variables)]
1212
#![deny(unused_assignments)]
1313
#![allow(dead_code, non_camel_case_types)]
14+
#![feature(unnamed_feature)]
1415

1516
fn f1(x: isize) {
1617
//~^ ERROR unused variable: `x`

src/test/compile-fail/simd-experimental.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
#![deny(unstable)]
12+
#![feature(unnamed_feature)]
1213

1314
use std::simd;
1415

src/test/compile-fail/unused-attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010
#![deny(unused_attributes)]
1111
#![allow(dead_code, unused_imports)]
12-
#![allow(unstable)]
12+
#![feature(unnamed_feature)]
1313

1414
#![foo] //~ ERROR unused attribute
1515

0 commit comments

Comments
 (0)