1
Fork 0

removed struct_variant feature from tests

This commit is contained in:
Simon Wollwage 2014-11-20 00:56:50 +01:00
parent 4a83726517
commit f950e3c495
46 changed files with 6 additions and 76 deletions

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
pub struct BTree<V> { pub struct BTree<V> {
pub node: TreeItem<V>, pub node: TreeItem<V>,
} }

View file

@ -7,7 +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(globs, struct_variant)] #![feature(globs)]
pub use Foo::*; pub use Foo::*;

View file

@ -7,7 +7,6 @@
// <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(struct_variant)]
pub enum Foo { pub enum Foo {
A, A,

View file

@ -7,7 +7,6 @@
// <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(struct_variant)]
enum Bar { enum Bar {
Baz { a: int } Baz { a: int }

View file

@ -11,8 +11,6 @@
#![crate_name="struct_variant_xc_aux"] #![crate_name="struct_variant_xc_aux"]
#![crate_type = "lib"] #![crate_type = "lib"]
#![feature(struct_variant)]
pub enum Enum { pub enum Enum {
Variant(u8), Variant(u8),
StructVariant { arg: u8 } StructVariant { arg: u8 }

View file

@ -40,7 +40,6 @@
// lldb-check:[...]$2 = TheOnlyCase(4820353753753434) // lldb-check:[...]$2 = TheOnlyCase(4820353753753434)
#![allow(unused_variables)] #![allow(unused_variables)]
#![feature(struct_variant)]
// The first element is to ensure proper alignment, irrespective of the machines word size. Since // The first element is to ensure proper alignment, irrespective of the machines word size. Since
// the size of the discriminant value is machine dependent, this has be taken into account when // the size of the discriminant value is machine dependent, this has be taken into account when

View file

@ -71,8 +71,6 @@
// lldb-check:[...]$6 = Case1 { x: 0, y: 8970181431921507452 } // lldb-check:[...]$6 = Case1 { x: 0, y: 8970181431921507452 }
// lldb-command:continue // lldb-command:continue
#![feature(struct_variant)]
#[deriving(Clone)] #[deriving(Clone)]
struct Struct { struct Struct {
a: int, a: int,

View file

@ -64,8 +64,6 @@
// gdb-command: print nested_variant2 // gdb-command: print nested_variant2
// gdb-check:$14 = NestedVariant2 = {abc = NestedStruct = {regular_struct = RegularStruct = {the_first_field = 117, the_second_field = 118.5, the_third_field = false, the_fourth_field = "NestedStructString10"}, tuple_struct = TupleStruct = {119.5, 120}, empty_struct = EmptyStruct, c_style_enum = CStyleEnumVar3, mixed_enum = MixedEnumStructVar = {field1 = 121.5, field2 = -122}}} // gdb-check:$14 = NestedVariant2 = {abc = NestedStruct = {regular_struct = RegularStruct = {the_first_field = 117, the_second_field = 118.5, the_third_field = false, the_fourth_field = "NestedStructString10"}, tuple_struct = TupleStruct = {119.5, 120}, empty_struct = EmptyStruct, c_style_enum = CStyleEnumVar3, mixed_enum = MixedEnumStructVar = {field1 = 121.5, field2 = -122}}}
#![feature(struct_variant)]
use self::CStyleEnum::{CStyleEnumVar1, CStyleEnumVar2, CStyleEnumVar3}; use self::CStyleEnum::{CStyleEnumVar1, CStyleEnumVar2, CStyleEnumVar3};
use self::MixedEnum::{MixedEnumCStyleVar, MixedEnumTupleVar, MixedEnumStructVar}; use self::MixedEnum::{MixedEnumCStyleVar, MixedEnumTupleVar, MixedEnumStructVar};
use self::NestedEnum::{NestedVariant1, NestedVariant2}; use self::NestedEnum::{NestedVariant1, NestedVariant2};

View file

@ -31,8 +31,6 @@
// gdb-check:$5 = 5 // gdb-check:$5 = 5
// gdb-command:continue // gdb-command:continue
#![feature(struct_variant)]
struct Struct { struct Struct {
x: int x: int
} }

View file

@ -29,8 +29,6 @@
// gdb-command:print univariant // gdb-command:print univariant
// gdb-check:$4 = {{a = -1}} // gdb-check:$4 = {{a = -1}}
#![feature(struct_variant)]
use self::Regular::{Case1, Case2, Case3}; use self::Regular::{Case1, Case2, Case3};
use self::Univariant::TheOnlyCase; use self::Univariant::TheOnlyCase;

View file

@ -113,8 +113,6 @@
// lldb-check:[...]$14 = -10 // lldb-check:[...]$14 = -10
// lldb-command:continue // lldb-command:continue
#![feature(struct_variant)]
enum Enum { enum Enum {
Variant1 { x: u16, y: u16 }, Variant1 { x: u16, y: u16 },
Variant2 (u32) Variant2 (u32)

View file

@ -62,8 +62,6 @@
// lldb-check:[...]$5 = Void // lldb-check:[...]$5 = Void
#![feature(struct_variant)]
// If a struct has exactly two variants, one of them is empty, and the other one // If a struct has exactly two variants, one of them is empty, and the other one
// contains a non-nullable pointer, then this value is used as the discriminator. // contains a non-nullable pointer, then this value is used as the discriminator.
// The test cases in this file make sure that something readable is generated for // The test cases in this file make sure that something readable is generated for

View file

@ -69,7 +69,6 @@
// gdb-command:continue // gdb-command:continue
#![allow(unused_variables)] #![allow(unused_variables)]
#![feature(struct_variant)]
use self::Opt::{Empty, Val}; use self::Opt::{Empty, Val};

View file

@ -54,8 +54,6 @@
// lldb-check:[...]$4 = 5 // lldb-check:[...]$4 = 5
// lldb-command:continue // lldb-command:continue
#![feature(struct_variant)]
struct Struct { struct Struct {
x: int x: int
} }

View file

@ -49,7 +49,6 @@
// lldb-check:[...]$3 = TheOnlyCase { a: -1 } // lldb-check:[...]$3 = TheOnlyCase { a: -1 }
#![allow(unused_variables)] #![allow(unused_variables)]
#![feature(struct_variant)]
use self::Regular::{Case1, Case2, Case3}; use self::Regular::{Case1, Case2, Case3};
use self::Univariant::TheOnlyCase; use self::Univariant::TheOnlyCase;

View file

@ -42,7 +42,6 @@
// lldb-check:[...]$2 = TheOnlyCase(123234) // lldb-check:[...]$2 = TheOnlyCase(123234)
#![allow(unused_variables)] #![allow(unused_variables)]
#![feature(struct_variant)]
// The first element is to ensure proper alignment, irrespective of the machines word size. Since // The first element is to ensure proper alignment, irrespective of the machines word size. Since
// the size of the discriminant value is machine dependent, this has be taken into account when // the size of the discriminant value is machine dependent, this has be taken into account when

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
enum E { enum E {
S0 { s: String }, S0 { s: String },
S1 { u: uint } S1 { u: uint }

View file

@ -10,8 +10,6 @@
// no-pretty-expanded FIXME #15189 // no-pretty-expanded FIXME #15189
#![feature(struct_variant)]
#[deriving(PartialEq, Eq, PartialOrd, Ord)] #[deriving(PartialEq, Eq, PartialOrd, Ord)]
enum ES<T> { enum ES<T> {
ES1 { x: T }, ES1 { x: T },

View file

@ -13,8 +13,6 @@
// ignore-test FIXME(#5121) // ignore-test FIXME(#5121)
#![feature(struct_variant)]
extern crate rand; extern crate rand;
extern crate rbml; extern crate rbml;
extern crate serialize; extern crate serialize;

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
use std::rand; use std::rand;
#[deriving(Rand)] #[deriving(Rand)]

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
use std::fmt; use std::fmt;
#[deriving(Show)] #[deriving(Show)]

View file

@ -8,7 +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(struct_variant, macro_rules)] #![feature(macro_rules)]
#[deriving(Show)] #[deriving(Show)]
struct Unit; struct Unit;

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
#[deriving(PartialEq, Show)] #[deriving(PartialEq, Show)]
enum S { enum S {
X { x: int, y: int }, X { x: int, y: int },

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
use std::task; use std::task;
#[deriving(PartialEq, Show)] #[deriving(PartialEq, Show)]

View file

@ -10,7 +10,6 @@
#![allow(dead_assignment)] #![allow(dead_assignment)]
#![allow(unused_variable)] #![allow(unused_variable)]
#![feature(struct_variant)]
enum Animal { enum Animal {
Dog (String, f64), Dog (String, f64),

View file

@ -10,8 +10,6 @@
// compile-flags: --cfg foo // compile-flags: --cfg foo
#![feature(struct_variant)]
struct Foo { struct Foo {
#[cfg(fail)] #[cfg(fail)]
bar: baz, bar: baz,

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
// Destructuring struct variants would ICE where regular structs wouldn't // Destructuring struct variants would ICE where regular structs wouldn't
enum Foo { enum Foo {

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
#[deny(dead_code)] #[deny(dead_code)]
pub enum Foo { pub enum Foo {
Bar { Bar {

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
enum Enum { enum Enum {
Foo { foo: uint }, Foo { foo: uint },
Bar { bar: uint } Bar { bar: uint }

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
enum E { enum E {
Foo{f: int}, Foo{f: int},
Bar, Bar,

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
enum E { enum E {
Foo{f: int, b: bool}, Foo{f: int, b: bool},
Bar, Bar,

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
struct NewBool(bool); struct NewBool(bool);
enum Direction { enum Direction {

View file

@ -10,8 +10,6 @@
// regression test for issue #5625 // regression test for issue #5625
#![feature(struct_variant)]
enum E { enum E {
Foo{f : int}, Foo{f : int},
Bar Bar

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
enum E { enum E {
Foo{f : int}, Foo{f : int},
Bar Bar

View file

@ -8,7 +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(macro_rules, struct_variant)] #![feature(macro_rules)]
enum Foo { enum Foo {
B { b1: int, bb1: int}, B { b1: int, bb1: int},

View file

@ -9,7 +9,6 @@
// except according to those terms. // except according to those terms.
// aux-build:namespaced_enum_emulate_flat.rs // aux-build:namespaced_enum_emulate_flat.rs
#![feature(struct_variant)]
extern crate namespaced_enum_emulate_flat; extern crate namespaced_enum_emulate_flat;

View file

@ -7,7 +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(globs, struct_variant)] #![feature(globs)]
pub use Foo::*; pub use Foo::*;
use nest::{Bar, D, E, F}; use nest::{Bar, D, E, F};

View file

@ -9,7 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:namespaced_enums.rs // aux-build:namespaced_enums.rs
#![feature(globs, struct_variant)] #![feature(globs)]
extern crate namespaced_enums; extern crate namespaced_enums;

View file

@ -7,7 +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(globs, struct_variant)] #![feature(globs)]
mod m2 { mod m2 {
pub enum Foo { pub enum Foo {

View file

@ -9,7 +9,6 @@
// except according to those terms. // except according to those terms.
// aux-build:namespaced_enums.rs // aux-build:namespaced_enums.rs
#![feature(struct_variant)]
extern crate namespaced_enums; extern crate namespaced_enums;

View file

@ -7,7 +7,6 @@
// <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(struct_variant)]
enum Foo { enum Foo {
A, A,

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
enum Foo { enum Foo {
Bar { Bar {
a: int, a: int,

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
enum Foo { enum Foo {
Bar { Bar {
x: int, x: int,

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
mod foo { mod foo {
pub enum Foo { pub enum Foo {
Bar { a: int } Bar { a: int }

View file

@ -9,8 +9,6 @@
// except according to those terms. // except according to those terms.
// //
// ignore-lexer-test FIXME #15879 // ignore-lexer-test FIXME #15879
#![feature(struct_variant)]
// Test sized-ness checking in substitution. // Test sized-ness checking in substitution.

View file

@ -8,8 +8,6 @@
// 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(struct_variant)]
enum Foo { enum Foo {
Bar { x: int }, Bar { x: int },
Baz { y: int } Baz { y: int }