Skip to content

Commit 1f46ae2

Browse files
committed
Add allow(unstable) to tests that need it
1 parent 3e38926 commit 1f46ae2

11 files changed

+11
-0
lines changed

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

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

1111
#![deny(dead_code)]
1212
#![allow(unreachable_code)]
13+
#![allow(unstable)]
1314

1415
#[macro_use] extern crate core;
1516

src/test/compile-fail/issue-17999.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(unused_variables)]
12+
#![allow(unstable)]
1213

1314
fn main() {
1415
for _ in range(1is, 101) {

src/test/compile-fail/lint-ctypes.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(improper_ctypes)]
12+
#![allow(unstable)]
1213

1314
extern crate libc;
1415

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#![allow(non_camel_case_types)]
1414
#![allow(non_upper_case_globals)]
1515
#![allow(missing_copy_implementations)]
16+
#![allow(unstable)]
1617
#![deny(dead_code)]
1718

1819
#![crate_type="lib"]

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

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

1111
#![allow(unused_variables)]
1212
#![allow(non_camel_case_types)]
13+
#![allow(unstable)]
1314
#![deny(dead_code)]
1415

1516
#![crate_type="lib"]

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

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

1111
#![allow(unused_variables)]
1212
#![allow(non_camel_case_types)]
13+
#![allow(unstable)]
1314
#![deny(dead_code)]
1415

1516
extern crate libc;

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

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

1111
#![deny(exceeding_bitshifts)]
1212
#![allow(unused_variables)]
13+
#![allow(unstable)]
1314
#![allow(dead_code)]
1415

1516
fn main() {

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

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

1313
#![deny(unused_extern_crates)]
1414
#![allow(unused_variables)]
15+
#![allow(unstable)]
1516

1617
extern crate libc; //~ ERROR: unused extern crate
1718

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// ignore-tidy-linelength
1212

1313
#![allow(dead_code)]
14+
#![allow(unstable)]
1415
#![deny(non_snake_case)]
1516

1617
use std::io::File;

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

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

1111
#![deny(unused_variables)]
1212
#![deny(unused_assignments)]
13+
#![allow(unstable)]
1314
#![allow(dead_code, non_camel_case_types)]
1415

1516
fn f1(x: isize) {

src/test/compile-fail/unused-attr.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
#![deny(unused_attributes)]
1111
#![allow(dead_code, unused_imports)]
12+
#![allow(unstable)]
1213

1314
#![foo] //~ ERROR unused attribute
1415

0 commit comments

Comments
 (0)