removed struct_variant feature from tests
This commit is contained in:
parent
4a83726517
commit
f950e3c495
46 changed files with 6 additions and 76 deletions
|
@ -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>,
|
||||
}
|
||||
|
|
|
@ -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::*;
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
#![crate_name="struct_variant_xc_aux"]
|
||||
#![crate_type = "lib"]
|
||||
|
||||
#![feature(struct_variant)]
|
||||
|
||||
pub enum Enum {
|
||||
Variant(u8),
|
||||
StructVariant { arg: u8 }
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -71,8 +71,6 @@
|
|||
// lldb-check:[...]$6 = Case1 { x: 0, y: 8970181431921507452 }
|
||||
// lldb-command:continue
|
||||
|
||||
#![feature(struct_variant)]
|
||||
|
||||
#[deriving(Clone)]
|
||||
struct Struct {
|
||||
a: int,
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
// gdb-check:$5 = 5
|
||||
// gdb-command:continue
|
||||
|
||||
#![feature(struct_variant)]
|
||||
|
||||
struct Struct {
|
||||
x: int
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -113,8 +113,6 @@
|
|||
// lldb-check:[...]$14 = -10
|
||||
// lldb-command:continue
|
||||
|
||||
#![feature(struct_variant)]
|
||||
|
||||
enum Enum {
|
||||
Variant1 { x: u16, y: u16 },
|
||||
Variant2 (u32)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -69,7 +69,6 @@
|
|||
// gdb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(struct_variant)]
|
||||
|
||||
use self::Opt::{Empty, Val};
|
||||
|
||||
|
|
|
@ -54,8 +54,6 @@
|
|||
// lldb-check:[...]$4 = 5
|
||||
// lldb-command:continue
|
||||
|
||||
#![feature(struct_variant)]
|
||||
|
||||
struct Struct {
|
||||
x: int
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
// no-pretty-expanded FIXME #15189
|
||||
|
||||
#![feature(struct_variant)]
|
||||
|
||||
#[deriving(PartialEq, Eq, PartialOrd, Ord)]
|
||||
enum ES<T> {
|
||||
ES1 { x: T },
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
|
||||
// ignore-test FIXME(#5121)
|
||||
|
||||
#![feature(struct_variant)]
|
||||
|
||||
extern crate rand;
|
||||
extern crate rbml;
|
||||
extern crate serialize;
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 },
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
#![allow(dead_assignment)]
|
||||
#![allow(unused_variable)]
|
||||
#![feature(struct_variant)]
|
||||
|
||||
enum Animal {
|
||||
Dog (String, f64),
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
// compile-flags: --cfg foo
|
||||
|
||||
#![feature(struct_variant)]
|
||||
|
||||
struct Foo {
|
||||
#[cfg(fail)]
|
||||
bar: baz,
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
|
||||
// regression test for issue #5625
|
||||
|
||||
#![feature(struct_variant)]
|
||||
|
||||
enum E {
|
||||
Foo{f : int},
|
||||
Bar
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
// aux-build:namespaced_enums.rs
|
||||
#![feature(globs, struct_variant)]
|
||||
#![feature(globs)]
|
||||
|
||||
extern crate namespaced_enums;
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
// except according to those terms.
|
||||
|
||||
// aux-build:namespaced_enums.rs
|
||||
#![feature(struct_variant)]
|
||||
|
||||
extern crate namespaced_enums;
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
// except according to those terms.
|
||||
//
|
||||
// ignore-lexer-test FIXME #15879
|
||||
#![feature(struct_variant)]
|
||||
|
||||
|
||||
// Test sized-ness checking in substitution.
|
||||
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue