diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-10-02 11:47:51 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-10-02 11:47:51 -0700 |
| commit | 7bf56df4c8bf40a16f2743447b7688343642f370 (patch) | |
| tree | a3854d324e66cf84cc78d1a89faff4a6265a9058 /src/libsyntax | |
| parent | 2f365ffdad40475e8f70f7af7f210d6c597b60f5 (diff) | |
| download | rust-7bf56df4c8bf40a16f2743447b7688343642f370.tar.gz rust-7bf56df4c8bf40a16f2743447b7688343642f370.zip | |
Revert "Put slicing syntax behind a feature gate."
This reverts commit 95cfc35607ccf5f02f02de56a35a9ef50fa23a82.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 6 | ||||
| -rw-r--r-- | src/libsyntax/lib.rs | 3 |
2 files changed, 1 insertions, 8 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 38de2a9c284..ca6d488772c 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -70,7 +70,6 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[ ("tuple_indexing", Active), ("associated_types", Active), ("visible_private_types", Active), - ("slicing_syntax", Active), ("if_let", Active), @@ -363,11 +362,6 @@ impl<'a, 'v> Visitor<'v> for Context<'a> { 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"); - } _ => {} } visit::walk_expr(self, e); diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 64dedd45923..a4271544146 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -23,8 +23,7 @@ html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://doc.rust-lang.org/master/")] -#![allow(unknown_features)] -#![feature(macro_rules, globs, default_type_params, phase, slicing_syntax)] +#![feature(macro_rules, globs, default_type_params, phase)] #![feature(quote, struct_variant, unsafe_destructor, import_shadowing)] #![allow(deprecated)] |
