]> git.lizzy.rs Git - rust.git/commitdiff
remove slicing_syntax feature gate
authorJorge Aparicio <japaricious@gmail.com>
Wed, 7 Jan 2015 23:28:28 +0000 (18:28 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Wed, 7 Jan 2015 23:37:04 +0000 (18:37 -0500)
src/libsyntax/feature_gate.rs

index d8b6cc535fc725b525f403c6c1f7da323cd61a6e..21d3e4fef7f9675f0930fd4f4f76e5e0fef931cf 100644 (file)
@@ -69,7 +69,7 @@
     ("tuple_indexing", Accepted),
     ("associated_types", Accepted),
     ("visible_private_types", Active),
-    ("slicing_syntax", Active),
+    ("slicing_syntax", Accepted),
 
     ("if_let", Accepted),
     ("while_let", Accepted),
@@ -337,14 +337,6 @@ fn visit_ty(&mut self, t: &ast::Ty) {
     }
 
     fn visit_expr(&mut self, e: &ast::Expr) {
-        match e.node {
-            ast::ExprRange(..) => {
-                self.gate_feature("slicing_syntax",
-                                  e.span,
-                                  "range syntax is experimental");
-            }
-            _ => {}
-        }
         visit::walk_expr(self, e);
     }