Opt into `box_patterns` feature gate in all tests that use them.

This commit is contained in:
Felix S. Klock II 2015-02-10 22:52:00 +01:00
parent e5ec43e217
commit 23e9d7cbe4
22 changed files with 22 additions and 0 deletions

View File

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_patterns)]
#![feature(box_syntax)]
use std::ops::Add;

View File

@ -9,6 +9,7 @@
// except according to those terms.
#![feature(advanced_slice_patterns)]
#![feature(box_patterns)]
#![feature(box_syntax)]
fn a() {

View File

@ -11,6 +11,7 @@
// The regression test for #15031 to make sure destructuring trait
// reference work properly.
#![feature(box_patterns)]
#![feature(box_syntax)]
trait T {}

View File

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_patterns)]
#![feature(box_syntax)]
enum IntList {

View File

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_patterns)]
#![feature(box_syntax)]
struct HTMLImageData {

View File

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_patterns)]
#![feature(box_syntax)]
trait MyTrait { }

View File

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_patterns)]
#![feature(box_syntax)]
enum A { B, C }

View File

@ -10,6 +10,7 @@
// ignore-tidy-linelength
#![feature(box_patterns)]
#![feature(box_syntax)]
struct S {

View File

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_patterns)]
#![feature(box_syntax)]
fn arg_item(box ref x: Box<isize>) -> &'static isize {

View File

@ -10,6 +10,7 @@
// error-pattern:unreachable pattern
#![feature(box_patterns)]
#![feature(box_syntax)]
enum foo { a(Box<foo>, isize), b(usize), }

View File

@ -11,6 +11,7 @@
// Check that we do not ICE when compiling this
// macro, which reuses the expression `$id`
#![feature(box_patterns)]
#![feature(box_syntax)]
struct Foo {

View File

@ -12,6 +12,7 @@
// statement or end of block, as appropriate given the temporary
// lifetime rules.
#![feature(box_patterns)]
#![feature(box_syntax)]
use std::ops::Drop;

View File

@ -15,6 +15,7 @@
// pattern.
#![allow(unknown_features)]
#![feature(box_patterns)]
#![feature(box_syntax)]
fn getaddr(box ref x: Box<uint>) -> *const uint {

View File

@ -9,6 +9,7 @@
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_patterns)]
#![feature(box_syntax)]
#[derive(Clone)]

View File

@ -10,6 +10,7 @@
#![allow(unknown_features)]
#![feature(box_syntax)]
#![feature(box_patterns)]
#![feature(unboxed_closures)]
use std::ops::{Deref, DerefMut};

View File

@ -7,6 +7,7 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_patterns)]
#![feature(box_syntax)]
enum E {

View File

@ -9,6 +9,7 @@
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_patterns)]
#![feature(box_syntax)]
fn foo(box (_x, _y): Box<(int, int)>) {}

View File

@ -9,6 +9,7 @@
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_patterns)]
#![feature(box_syntax)]
pub fn main() {

View File

@ -12,6 +12,7 @@
// Issue #3148.
#![allow(unknown_features)]
#![feature(box_patterns)]
#![feature(box_syntax)]
struct A {

View File

@ -9,6 +9,7 @@
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_patterns)]
#![feature(box_syntax)]
struct Foo { a: int, b: int }

View File

@ -9,6 +9,7 @@
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_patterns)]
#![feature(box_syntax)]
struct Foo {a: int, b: uint}

View File

@ -9,6 +9,7 @@
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_patterns)]
#![feature(box_syntax)]
fn simple() {