From cd3bdeb91a8214aaf8c073cef3c7ad70299c4542 Mon Sep 17 00:00:00 2001 From: Chase Southwood Date: Thu, 11 Dec 2014 20:12:17 -0600 Subject: [PATCH] Remove feature gate directives for `if_let`, `while_let`, and `tuple_indexing`. --- src/doc/reference.md | 6 ------ src/test/compile-fail/issue-19096.rs | 2 -- src/test/run-pass/borrow-tuple-fields.rs | 2 -- src/test/run-pass/if-let.rs | 2 -- src/test/run-pass/issue-18412.rs | 2 -- src/test/run-pass/issue-19244.rs | 2 -- src/test/run-pass/issue-19367.rs | 1 - src/test/run-pass/tuple-index-fat-types.rs | 2 -- src/test/run-pass/tuple-index.rs | 2 -- src/test/run-pass/while-let.rs | 2 -- 10 files changed, 23 deletions(-) diff --git a/src/doc/reference.md b/src/doc/reference.md index 660a97cd55f33..1b04698406d87 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -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. @@ -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 diff --git a/src/test/compile-fail/issue-19096.rs b/src/test/compile-fail/issue-19096.rs index 6b67814aab33f..5d915d6a59b15 100644 --- a/src/test/compile-fail/issue-19096.rs +++ b/src/test/compile-fail/issue-19096.rs @@ -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::; //~ ERROR expected one of `.`, `;`, `}`, or an operator, found `::` diff --git a/src/test/run-pass/borrow-tuple-fields.rs b/src/test/run-pass/borrow-tuple-fields.rs index 046d76c4331dc..a151a837f77d2 100644 --- a/src/test/run-pass/borrow-tuple-fields.rs +++ b/src/test/run-pass/borrow-tuple-fields.rs @@ -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() { diff --git a/src/test/run-pass/if-let.rs b/src/test/run-pass/if-let.rs index 3a2aadd830b22..4dff2ea55f16a 100644 --- a/src/test/run-pass/if-let.rs +++ b/src/test/run-pass/if-let.rs @@ -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 { diff --git a/src/test/run-pass/issue-18412.rs b/src/test/run-pass/issue-18412.rs index c03301f17f31f..63f57e0a2e85e 100644 --- a/src/test/run-pass/issue-18412.rs +++ b/src/test/run-pass/issue-18412.rs @@ -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. diff --git a/src/test/run-pass/issue-19244.rs b/src/test/run-pass/issue-19244.rs index fecddea13e0f8..d42bda6cd5d42 100644 --- a/src/test/run-pass/issue-19244.rs +++ b/src/test/run-pass/issue-19244.rs @@ -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,); diff --git a/src/test/run-pass/issue-19367.rs b/src/test/run-pass/issue-19367.rs index 6083b340825d4..3efc2ee50f358 100644 --- a/src/test/run-pass/issue-19367.rs +++ b/src/test/run-pass/issue-19367.rs @@ -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 } diff --git a/src/test/run-pass/tuple-index-fat-types.rs b/src/test/run-pass/tuple-index-fat-types.rs index fdee1d9f96c4d..eccd841e357b6 100644 --- a/src/test/run-pass/tuple-index-fat-types.rs +++ b/src/test/run-pass/tuple-index-fat-types.rs @@ -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() { diff --git a/src/test/run-pass/tuple-index.rs b/src/test/run-pass/tuple-index.rs index 107dc40e18671..78e0cad47129a 100644 --- a/src/test/run-pass/tuple-index.rs +++ b/src/test/run-pass/tuple-index.rs @@ -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() { diff --git a/src/test/run-pass/while-let.rs b/src/test/run-pass/while-let.rs index 449b3099dfa4d..94a45817ee580 100644 --- a/src/test/run-pass/while-let.rs +++ b/src/test/run-pass/while-let.rs @@ -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 {