Skip to content

Commit

Permalink
Remove struct_variant feature gate.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Nov 6, 2014
1 parent 60a669a commit f375d5d
Show file tree
Hide file tree
Showing 103 changed files with 13 additions and 171 deletions.
8 changes: 0 additions & 8 deletions src/doc/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,6 @@ a = Cat;
Enumeration constructors can have either named or unnamed fields:

```
# #![feature(struct_variant)]
# fn main() {
enum Animal {
Dog (String, f64),
Expand Down Expand Up @@ -2540,13 +2539,6 @@ The currently implemented features of the reference compiler are:
* `struct_inherit` - Allows using struct inheritance, which is barely
implemented and will probably be removed. Don't use this.

* `struct_variant` - Structural enum variants (those with named fields). It is
currently unknown whether this style of enum variant is as
fully supported as the tuple-forms, and it's not certain
that this style of variant should remain in the language.
For now this style of variant is hidden behind a feature
flag.

* `thread_local` - The usage of the `#[thread_local]` attribute is experimental
and should be seen as unstable. This attribute is used to
declare a `static` as being unique per-thread leveraging
Expand Down
1 change: 0 additions & 1 deletion src/etc/generate-deriving-span-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
#![feature(struct_variant)]
extern crate rand;
{error_deriving}
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ This API is completely unstable and subject to change.
html_root_url = "http://doc.rust-lang.org/nightly/")]

#![feature(default_type_params, globs, if_let, import_shadowing, macro_rules, phase, quote)]
#![feature(slicing_syntax, struct_variant, unsafe_destructor)]
#![feature(slicing_syntax, unsafe_destructor)]
#![feature(rustc_diagnostic_macros)]

extern crate arena;
Expand Down
2 changes: 1 addition & 1 deletion src/librustdoc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#![crate_type = "rlib"]

#![allow(unknown_features)]
#![feature(globs, struct_variant, macro_rules, phase, slicing_syntax)]
#![feature(globs, macro_rules, phase, slicing_syntax)]

extern crate arena;
extern crate getopts;
Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/feature_gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use std::slice;
static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
("globs", Active),
("macro_rules", Active),
("struct_variant", Active),
("struct_variant", Removed),
("once_fns", Active),
("asm", Active),
("managed_boxes", Removed),
Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#![allow(unknown_features)]
#![feature(macro_rules, globs, default_type_params, phase, slicing_syntax)]
#![feature(quote, struct_variant, unsafe_destructor, import_shadowing)]
#![feature(quote, unsafe_destructor, import_shadowing)]

extern crate arena;
extern crate fmt_macros;
Expand Down
2 changes: 0 additions & 2 deletions src/test/auxiliary/issue-8044.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/auxiliary/namespaced_enum_emulate_flat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;

Expand Down
1 change: 0 additions & 1 deletion src/test/auxiliary/namespaced_enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions src/test/auxiliary/privacy-struct-variant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(struct_variant)]

pub enum Foo {
Bar {
baz: int
Expand Down
2 changes: 0 additions & 2 deletions src/test/auxiliary/struct_variant_xc_aux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#![crate_name="struct_variant_xc_aux"]
#![crate_type = "lib"]

#![feature(struct_variant)]

pub enum Enum {
Variant(u8),
StructVariant { pub arg: u8 }
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(struct_variant)]

use std::num::FromPrimitive;
use std::int;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Clone)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Clone-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Clone)]
Expand Down
1 change: 0 additions & 1 deletion src/test/compile-fail/deriving-span-Clone-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Clone-tuple-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Clone)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Default-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Default)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Default-tuple-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Default)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Hash)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Hash-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Hash)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Hash-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Hash)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Hash-tuple-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Hash)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(PartialEq)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-PartialEq-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(PartialEq)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-PartialEq-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(PartialEq)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-PartialEq-tuple-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(PartialEq)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;

#[deriving(PartialEq)]
Expand Down
1 change: 0 additions & 1 deletion src/test/compile-fail/deriving-span-PartialOrd-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;

#[deriving(PartialEq)]
Expand Down
1 change: 0 additions & 1 deletion src/test/compile-fail/deriving-span-PartialOrd-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;

#[deriving(PartialEq)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;

#[deriving(PartialEq)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Rand)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Rand-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Rand)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Rand-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Rand)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Rand-tuple-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Rand)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Show)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Show-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Show)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Show-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Show)]
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/deriving-span-Show-tuple-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;


struct Error;

#[deriving(Show)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'

#![feature(struct_variant)]
extern crate rand;

#[deriving(PartialEq)]
Expand Down
Loading

0 comments on commit f375d5d

Please sign in to comment.