Skip to content

Commit cd3bdeb

Browse files
committed
Remove feature gate directives for if_let, while_let, and tuple_indexing.
1 parent a592124 commit cd3bdeb

10 files changed

+0
-23
lines changed

src/doc/reference.md

-6
Original file line numberDiff line numberDiff line change
@@ -2549,10 +2549,6 @@ The currently implemented features of the reference compiler are:
25492549
* `default_type_params` - Allows use of default type parameters. The future of
25502550
this feature is uncertain.
25512551

2552-
* `if_let` - Allows use of the `if let` syntax.
2553-
2554-
* `while_let` - Allows use of the `while let` syntax.
2555-
25562552
* `intrinsics` - Allows use of the "rust-intrinsics" ABI. Compiler intrinsics
25572553
are inherently unstable and no promise about them is made.
25582554

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

2642-
* `tuple_indexing` - Allows use of tuple indexing (expressions like `expr.0`)
2643-
26442638
* `associated_types` - Allows type aliases in traits. Experimental.
26452639

26462640
If a feature is promoted to a language feature, then all existing programs will

src/test/compile-fail/issue-19096.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(tuple_indexing)]
12-
1311
fn main() {
1412
let t = (42i, 42i);
1513
t.0::<int>; //~ ERROR expected one of `.`, `;`, `}`, or an operator, found `::`

src/test/run-pass/borrow-tuple-fields.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(tuple_indexing)]
12-
1311
struct Foo(int, int);
1412

1513
fn main() {

src/test/run-pass/if-let.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(if_let)]
12-
1311
pub fn main() {
1412
let x = Some(3i);
1513
if let Some(y) = x {

src/test/run-pass/issue-18412.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(tuple_indexing)]
12-
1311
// Test that non-static methods can be assigned to local variables as
1412
// function pointers.
1513

src/test/run-pass/issue-19244.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(tuple_indexing)]
12-
1311
struct MyStruct { field: uint }
1412
const STRUCT: MyStruct = MyStruct { field: 42 };
1513
const TUP: (uint,) = (43,);

src/test/run-pass/issue-19367.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(tuple_indexing)]
1211
struct S {
1312
o: Option<String>
1413
}

src/test/run-pass/tuple-index-fat-types.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(tuple_indexing)]
12-
1311
struct Foo<'a>(&'a [int]);
1412

1513
fn main() {

src/test/run-pass/tuple-index.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(tuple_indexing)]
12-
1311
struct Point(int, int);
1412

1513
fn main() {

src/test/run-pass/while-let.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(while_let)]
12-
1311
use std::collections::BinaryHeap;
1412

1513
fn make_pq() -> BinaryHeap<int> {

0 commit comments

Comments
 (0)