1
Fork 0

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 // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(box_patterns)]
#![feature(box_syntax)] #![feature(box_syntax)]
use std::ops::Add; use std::ops::Add;

View file

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

View file

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

View file

@ -8,6 +8,7 @@
// 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.
#![feature(box_patterns)]
#![feature(box_syntax)] #![feature(box_syntax)]
enum IntList { enum IntList {

View file

@ -8,6 +8,7 @@
// 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.
#![feature(box_patterns)]
#![feature(box_syntax)] #![feature(box_syntax)]
struct HTMLImageData { struct HTMLImageData {

View file

@ -8,6 +8,7 @@
// 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.
#![feature(box_patterns)]
#![feature(box_syntax)] #![feature(box_syntax)]
trait MyTrait { } trait MyTrait { }

View file

@ -8,6 +8,7 @@
// 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.
#![feature(box_patterns)]
#![feature(box_syntax)] #![feature(box_syntax)]
enum A { B, C } enum A { B, C }

View file

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

View file

@ -8,6 +8,7 @@
// 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.
#![feature(box_patterns)]
#![feature(box_syntax)] #![feature(box_syntax)]
fn arg_item(box ref x: Box<isize>) -> &'static isize { fn arg_item(box ref x: Box<isize>) -> &'static isize {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -7,6 +7,7 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// 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.
#![feature(box_patterns)]
#![feature(box_syntax)] #![feature(box_syntax)]
enum E { enum E {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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