Skip to content

Commit

Permalink
remove slicing_syntax feature gate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Jan 7, 2015
1 parent 517f1cc commit 8327bcc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/libsyntax/feature_gate.rs
Expand Up @@ -69,7 +69,7 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
("tuple_indexing", Accepted),
("associated_types", Accepted),
("visible_private_types", Active),
("slicing_syntax", Active),
("slicing_syntax", Accepted),

("if_let", Accepted),
("while_let", Accepted),
Expand Down Expand Up @@ -337,14 +337,6 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
}

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);
}

Expand Down

0 comments on commit 8327bcc

Please sign in to comment.