Skip to content

Commit cd62e3a

Browse files
committed
Merge pull request #19763 from csouth3/remove-featuregates
Remove feature gate directives for `if_let`, `while_let`, and `tuple_indexing`. Reviewed-by: sfackler
2 parents d71b0d0 + cd3bdeb commit cd62e3a

10 files changed

+0
-23
lines changed

src/doc/reference.md

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

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

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

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

26452639
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)