Skip to content

Commit 8327bcc

Browse files
author
Jorge Aparicio
committed
remove slicing_syntax feature gate
1 parent 517f1cc commit 8327bcc

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/libsyntax/feature_gate.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
6969
("tuple_indexing", Accepted),
7070
("associated_types", Accepted),
7171
("visible_private_types", Active),
72-
("slicing_syntax", Active),
72+
("slicing_syntax", Accepted),
7373

7474
("if_let", Accepted),
7575
("while_let", Accepted),
@@ -337,14 +337,6 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
337337
}
338338

339339
fn visit_expr(&mut self, e: &ast::Expr) {
340-
match e.node {
341-
ast::ExprRange(..) => {
342-
self.gate_feature("slicing_syntax",
343-
e.span,
344-
"range syntax is experimental");
345-
}
346-
_ => {}
347-
}
348340
visit::walk_expr(self, e);
349341
}
350342

0 commit comments

Comments
 (0)