about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-12-05 10:07:10 -0800
committerCorey Richardson <corey@octayn.net>2014-12-05 10:07:10 -0800
commit6f173cdba66fd988295b3abe1a355330ddc710eb (patch)
treedea2e75bb09400376f64d18b0c018f5d792a82ce /src/libsyntax
parent560b8f6c593e7a232f78fc071a305927e935d352 (diff)
parentc200ae5a8a1ab70cfea39ef184e1fd0e87b33181 (diff)
downloadrust-6f173cdba66fd988295b3abe1a355330ddc710eb.tar.gz
rust-6f173cdba66fd988295b3abe1a355330ddc710eb.zip
rollup merge of #19472: nick29581/iflet
Closes #19469

r?
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index c7aef0020b2..5ece63fd48d 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -65,13 +65,13 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
     ("unboxed_closures", Active),
     ("import_shadowing", Active),
     ("advanced_slice_patterns", Active),
-    ("tuple_indexing", Active),
+    ("tuple_indexing", Accepted),
     ("associated_types", Active),
     ("visible_private_types", Active),
     ("slicing_syntax", Active),
 
-    ("if_let", Active),
-    ("while_let", Active),
+    ("if_let", Accepted),
+    ("while_let", Accepted),
 
     // if you change this list without updating src/doc/reference.md, cmr will be sad
 
@@ -309,24 +309,11 @@ impl<'a, 'v> Visitor<'v> for Context<'a> {
                                   "unboxed closures are a work-in-progress \
                                    feature with known bugs");
             }
-            ast::ExprTupField(..) => {
-                self.gate_feature("tuple_indexing",
-                                  e.span,
-                                  "tuple indexing is experimental");
-            }
-            ast::ExprIfLet(..) => {
-                self.gate_feature("if_let", e.span,
-                                  "`if let` syntax is experimental");
-            }
             ast::ExprSlice(..) => {
                 self.gate_feature("slicing_syntax",
                                   e.span,
                                   "slicing syntax is experimental");
             }
-            ast::ExprWhileLet(..) => {
-                self.gate_feature("while_let", e.span,
-                                  "`while let` syntax is experimental");
-            }
             _ => {}
         }
         visit::walk_expr(self, e);