]> git.lizzy.rs Git - rust.git/commitdiff
Remove feature gate directives for `if_let`, `while_let`, and `tuple_indexing`.
authorChase Southwood <chase.southwood@gmail.com>
Fri, 12 Dec 2014 02:12:17 +0000 (20:12 -0600)
committerChase Southwood <chase.southwood@gmail.com>
Fri, 12 Dec 2014 19:23:54 +0000 (13:23 -0600)
src/doc/reference.md
src/test/compile-fail/issue-19096.rs
src/test/run-pass/borrow-tuple-fields.rs
src/test/run-pass/if-let.rs
src/test/run-pass/issue-18412.rs
src/test/run-pass/issue-19244.rs
src/test/run-pass/issue-19367.rs
src/test/run-pass/tuple-index-fat-types.rs
src/test/run-pass/tuple-index.rs
src/test/run-pass/while-let.rs

index 660a97cd55f3343465abd15aaf77fc99ef7a6dac..1b04698406d874d92abd5b26dddcf9e50525759f 100644 (file)
@@ -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
index 6b67814aab33f930291a278e118bc392f894041f..5d915d6a59b1578bcb2517b7e13e5b79f1f5c835 100644 (file)
@@ -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 `::`
index 046d76c4331dc36e357cc039aac8e8b075b88c03..a151a837f77d2d3444dbc37eae4b5544bc4fc94d 100644 (file)
@@ -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() {
index 3a2aadd830b224d278c57179c6669073bfa3bd4f..4dff2ea55f16a4add6a7efe4d50f4ee73a6129f8 100644 (file)
@@ -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 {
index c03301f17f31fe15776d32e126dcd41f5cb8e4cb..63f57e0a2e85eaea056cfe042e1ca0c2e6bbbea8 100644 (file)
@@ -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.
 
index fecddea13e0f88855192a837826cdf0217d8550b..d42bda6cd5d420139953d59c0eaa09853859eaf0 100644 (file)
@@ -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,);
index 6083b340825d4b7d278e58f901949509944d927b..3efc2ee50f3587983db33b7873e39ca0883db7bd 100644 (file)
@@ -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>
 }
index fdee1d9f96c4d346f4737e9c340b627909171462..eccd841e357b608ebf9b44a0720729ed91649a87 100644 (file)
@@ -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() {
index 107dc40e1867140ca335db60788f7389d54c41a8..78e0cad47129a9d4d7c30819c98a3299c141a92c 100644 (file)
@@ -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() {
index 449b3099dfa4dd2e2973e25ee63062845e406218..94a45817ee580109f985114c35d2e287c30631fe 100644 (file)
@@ -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> {