Skip to content

Commit

Permalink
Remove feature gate directives for if_let, while_let, and `tuple_…
Browse files Browse the repository at this point in the history
…indexing`.
  • Loading branch information
csouth3 committed Dec 12, 2014
1 parent a592124 commit cd3bdeb
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 23 deletions.
6 changes: 0 additions & 6 deletions src/doc/reference.md
Expand Up @@ -2549,10 +2549,6 @@ The currently implemented features of the reference compiler are:
* `default_type_params` - Allows use of default type parameters. The future of
this feature is uncertain.

* `if_let` - Allows use of the `if let` syntax.

* `while_let` - Allows use of the `while let` syntax.

* `intrinsics` - Allows use of the "rust-intrinsics" ABI. Compiler intrinsics
are inherently unstable and no promise about them is made.

Expand Down Expand Up @@ -2639,8 +2635,6 @@ The currently implemented features of the reference compiler are:
which is considered wildly unsafe and will be
obsoleted by language improvements.

* `tuple_indexing` - Allows use of tuple indexing (expressions like `expr.0`)

* `associated_types` - Allows type aliases in traits. Experimental.

If a feature is promoted to a language feature, then all existing programs will
Expand Down
2 changes: 0 additions & 2 deletions src/test/compile-fail/issue-19096.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(tuple_indexing)]

fn main() {
let t = (42i, 42i);
t.0::<int>; //~ ERROR expected one of `.`, `;`, `}`, or an operator, found `::`
Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass/borrow-tuple-fields.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(tuple_indexing)]

struct Foo(int, int);

fn main() {
Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass/if-let.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(if_let)]

pub fn main() {
let x = Some(3i);
if let Some(y) = x {
Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass/issue-18412.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(tuple_indexing)]

// Test that non-static methods can be assigned to local variables as
// function pointers.

Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass/issue-19244.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(tuple_indexing)]

struct MyStruct { field: uint }
const STRUCT: MyStruct = MyStruct { field: 42 };
const TUP: (uint,) = (43,);
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/issue-19367.rs
Expand Up @@ -8,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(tuple_indexing)]
struct S {
o: Option<String>
}
Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass/tuple-index-fat-types.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(tuple_indexing)]

struct Foo<'a>(&'a [int]);

fn main() {
Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass/tuple-index.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(tuple_indexing)]

struct Point(int, int);

fn main() {
Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass/while-let.rs
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(while_let)]

use std::collections::BinaryHeap;

fn make_pq() -> BinaryHeap<int> {
Expand Down

0 comments on commit cd3bdeb

Please sign in to comment.