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
// except according to those terms.
#![feature(struct_variant)]
pub struct BTree<V> {
pub node: TreeItem<V>,
}

View file

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

View file

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

View file

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

View file

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

View file

@ -40,7 +40,6 @@
// lldb-check:[...]$2 = TheOnlyCase(4820353753753434)
#![allow(unused_variables)]
#![feature(struct_variant)]
// 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

View file

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

View file

@ -64,8 +64,6 @@
// 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}}}
#![feature(struct_variant)]
use self::CStyleEnum::{CStyleEnumVar1, CStyleEnumVar2, CStyleEnumVar3};
use self::MixedEnum::{MixedEnumCStyleVar, MixedEnumTupleVar, MixedEnumStructVar};
use self::NestedEnum::{NestedVariant1, NestedVariant2};

View file

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

View file

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

View file

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

View file

@ -62,8 +62,6 @@
// lldb-check:[...]$5 = Void
#![feature(struct_variant)]
// 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.
// The test cases in this file make sure that something readable is generated for

View file

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

View file

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

View file

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

View file

@ -42,7 +42,6 @@
// lldb-check:[...]$2 = TheOnlyCase(123234)
#![allow(unused_variables)]
#![feature(struct_variant)]
// 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

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
enum E {
S0 { s: String },
S1 { u: uint }

View file

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

View file

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

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
use std::rand;
#[deriving(Rand)]

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
use std::fmt;
#[deriving(Show)]

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant, macro_rules)]
#![feature(macro_rules)]
#[deriving(Show)]
struct Unit;

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
#[deriving(PartialEq, Show)]
enum S {
X { x: int, y: int },

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
use std::task;
#[deriving(PartialEq, Show)]

View file

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

View file

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

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
// Destructuring struct variants would ICE where regular structs wouldn't
enum Foo {

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
#[deny(dead_code)]
pub enum Foo {
Bar {

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
enum Enum {
Foo { foo: uint },
Bar { bar: uint }

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
enum E {
Foo{f: int},
Bar,

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
enum E {
Foo{f: int, b: bool},
Bar,

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
struct NewBool(bool);
enum Direction {

View file

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

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
enum E {
Foo{f : int},
Bar

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(macro_rules, struct_variant)]
#![feature(macro_rules)]
enum Foo {
B { b1: int, bb1: int},

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
enum Foo {
Bar {
a: int,

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
enum Foo {
Bar {
x: int,

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
mod foo {
pub enum Foo {
Bar { a: int }

View file

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

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(struct_variant)]
enum Foo {
Bar { x: int },
Baz { y: int }