]> git.lizzy.rs Git - rust.git/commitdiff
remove some `slicing_syntax` feature gates
authorJorge Aparicio <japaricious@gmail.com>
Wed, 7 Jan 2015 23:36:38 +0000 (18:36 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Wed, 7 Jan 2015 23:37:04 +0000 (18:37 -0500)
27 files changed:
src/test/bench/shootout-fannkuch-redux.rs
src/test/bench/shootout-fasta-redux.rs
src/test/bench/shootout-fasta.rs
src/test/bench/shootout-k-nucleotide-pipes.rs
src/test/bench/shootout-k-nucleotide.rs
src/test/bench/shootout-regex-dna.rs
src/test/bench/shootout-reverse-complement.rs
src/test/compile-fail/packed-struct-generic-transmute.rs
src/test/compile-fail/range-1.rs
src/test/compile-fail/range-2.rs
src/test/compile-fail/slice-2.rs
src/test/compile-fail/slice-borrow.rs
src/test/compile-fail/slice-mut-2.rs
src/test/compile-fail/slice-mut.rs
src/test/debuginfo/vec-slices.rs
src/test/run-pass/issue-15730.rs
src/test/run-pass/issue-17503.rs
src/test/run-pass/issue-20644.rs
src/test/run-pass/issue-3888-2.rs
src/test/run-pass/issue-4464.rs
src/test/run-pass/issue-8898.rs
src/test/run-pass/range.rs
src/test/run-pass/repeated-vector-syntax.rs
src/test/run-pass/slice-2.rs
src/test/run-pass/slice-panic-1.rs
src/test/run-pass/slice-panic-2.rs
src/test/run-pass/slice.rs

index 261741c073f3a56bddc34cb7b520da1f28d708bb..bd4b8e5e97f4922fc44235e749e26d1f478d5616 100644 (file)
@@ -38,8 +38,6 @@
 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 // OF THE POSSIBILITY OF SUCH DAMAGE.
 
-#![feature(slicing_syntax)]
-
 use std::{cmp, iter, mem};
 use std::thread::Thread;
 
index 9a6152dc13c9d4429ef36f97fd12ac65b02be735..5a47f9fbc573a7f5ecbac739de55d877bdc9e402 100644 (file)
@@ -38,8 +38,6 @@
 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 // OF THE POSSIBILITY OF SUCH DAMAGE.
 
-#![feature(slicing_syntax)]
-
 use std::cmp::min;
 use std::io::{stdout, IoResult};
 use std::iter::repeat;
index 29994f45d3af27b3726903ce8658756e49b638a7..e9da34615c19237a9651959565c5f9785f710be0 100644 (file)
@@ -38,8 +38,6 @@
 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 // OF THE POSSIBILITY OF SUCH DAMAGE.
 
-#![feature(slicing_syntax)]
-
 use std::cmp::min;
 use std::io::{BufferedWriter, File};
 use std::io;
index 3845c6c593c5fe9abf368d77210b95412ec51b99..7bca722e53ef3985bfcc9b3ab2d3918b13be98fc 100644 (file)
@@ -13,8 +13,6 @@
 
 // multi tasking k-nucleotide
 
-#![feature(slicing_syntax)]
-
 use std::ascii::{AsciiExt, OwnedAsciiExt};
 use std::cmp::Ordering::{self, Less, Greater, Equal};
 use std::collections::HashMap;
index d0ff47628d432295715ff1c5c77434d1f62e345e..25a23ffed4eacb55f571a98d37b00b9076debde9 100644 (file)
@@ -40,8 +40,6 @@
 
 // ignore-android see #10393 #13206
 
-#![feature(slicing_syntax)]
-
 use std::ascii::OwnedAsciiExt;
 use std::iter::repeat;
 use std::slice;
index ef538eb699189e1d7cfd042ccc4fac62c625952d..60d33d92549284202363e8cf6fbeddc1922ceba7 100644 (file)
@@ -41,8 +41,6 @@
 // ignore-stage1
 // ignore-cross-compile #12102
 
-#![feature(plugin, slicing_syntax)]
-
 extern crate regex;
 
 use std::io;
index 3003a88e972b434411e1ac9759a8dcfd5e3d8362..841f70e13c4f919a019e4ce9ff7f28ec5c1cf93e 100644 (file)
@@ -40,7 +40,7 @@
 
 // ignore-android see #10393 #13206
 
-#![feature(slicing_syntax, unboxed_closures)]
+#![feature(unboxed_closures)]
 
 extern crate libc;
 
index 38177d076455d5bae99415e117762b32f291e42c..6631d92103803791847c3fdc7f03e4413be10d7a 100644 (file)
@@ -15,8 +15,6 @@
 
 // error-pattern: transmute called on types with different size
 
-#![feature(slicing_syntax)]
-
 use std::mem;
 
 #[repr(packed)]
index 0ade29750442bcf14f3b6dda11ef681c71bff0d5..1668b868e641ec9d2f8b58fefe4fb34b202d4917 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 // Test range syntax - type errors.
-#![feature(slicing_syntax)]
 
 pub fn main() {
     // Mixed types.
index 74c304884a07c09f3a20b3328f43f6d8093eb5d4..40690bd844bce6f6980e95b770b41c18fa75bcd2 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 // Test range syntax - borrow errors.
-#![feature(slicing_syntax)]
 
 pub fn main() {
     let r = {
index a03693b5fada086f4a26d6644cf12cfcea3cc26c..07162293565ed2c9e3f93e4d89521212497bda44 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test that slicing syntax gives errors if we have not implemented the trait.
 
-#![feature(slicing_syntax)]
-
 struct Foo;
 
 fn main() {
index aab187f97515a0c693e88b55891a5374963b366d..43c4326628d338f24af8fe61b69fc3752a59a187 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test slicing expressions doesn't defeat the borrow checker.
 
-#![feature(slicing_syntax)]
-
 fn main() {
     let y;
     {
index 1dedb0cf888e56ff5cce65856f57094e7725465c..12f184d410c900e3539021c81c6a77c115941c0e 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test mutability and slicing syntax.
 
-#![feature(slicing_syntax)]
-
 fn main() {
     let x: &[int] = &[1, 2, 3, 4, 5];
     // Can't mutably slice an immutable slice
index f0f525a553576e7de57f9e66d2b46fa6f95b582c..9bd9a752e4e890e0574db32ca22e0975d7871f77 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test mutability and slicing syntax.
 
-#![feature(slicing_syntax)]
-
 fn main() {
     let x: &[int] = &[1, 2, 3, 4, 5];
     // Immutable slices are not mutable.
index 14f1dbb9d651cb88fbffce15e5e7b8b4f269735e..949dffaac068f474bda3a2649f0a4fcfc43d6068 100644 (file)
@@ -77,7 +77,6 @@
 // lldb-check:[...]$5 = &[AStruct { x: 10, y: 11, z: 12 }, AStruct { x: 13, y: 14, z: 15 }]
 
 #![allow(unused_variables)]
-#![feature(slicing_syntax)]
 #![omit_gdb_pretty_printer_section]
 
 struct AStruct {
index 4e1aa454a881db717a5dfcd9101ebd95de8564aa..72daa0cba4104abcb20783e2f34d66589fabdb16 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(slicing_syntax)]
-
 fn main() {
     let mut array = [1, 2, 3];
     let pie_slice = &array[1..2];
index 8acda1750069257f80cb09360568b269d451f7c2..259895fffc95bd2446df4464a40d854b52e7ae07 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(slicing_syntax)]
-
 fn main() {
     let s: &[int] = &[0, 1, 2, 3, 4];
     let ss: &&[int] = &s;
index 4a57ed56594b1a04a1b81d73d3e5528f3c16c5f2..f74b09a3d246fb540652facc940710b27832ea0f 100644 (file)
@@ -11,7 +11,6 @@
 // A reduced version of the rustbook ice. The problem this encountered
 // had to do with trans ignoring binders.
 
-#![feature(slicing_syntax)]
 #![feature(associated_types)]
 #![feature(macro_rules)]
 
index 5ed9729c1425861cf9ed4a4530ef5932c1e59fe7..bf3d0b786af65c48b53ce212626d61732bc305b7 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(slicing_syntax)]
-
 fn vec_peek<'r, T>(v: &'r [T]) -> &'r [T] {
     &v[1..5]
 }
index 2581069d29b05c0b399b53530d579b987aeab2f3..33a5c7a167f9991ab9a121c95dd3bae5188cc6ab 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(slicing_syntax)]
-
 fn broken(v: &[u8], i: uint, j: uint) -> &[u8] { &v[i..j] }
 
 pub fn main() {}
index 0ca63d52bd849f224066ce63e163e4bc70b388e0..42739628eed75c8dcb8f8dbd47316131a266c4e4 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(slicing_syntax)]
-
 fn assert_repr_eq<T: std::fmt::Show>(obj : T, expected : String) {
     assert_eq!(expected, format!("{:?}", obj));
 }
index 43b6d4b3109c8bb825ebe25d1f3253e8326b635b..90e871689908256f21eb237506693b7a86e597c5 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test range syntax.
 
-#![feature(slicing_syntax)]
-
 fn foo() -> int { 42 }
 
 pub fn main() {
index e854a7326329c8d6d0e977230224b3dc9285f578..eb1c34ee5eb128c2d84490b4e5e509453c27d7d6 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(slicing_syntax)]
-
 pub fn main() {
     let x = [ [true]; 512 ];
     let y = [ 0i; 1 ];
index 05f318b53c2e543404988c2c536e40751601d4ed..8f031d2e97e3ffd90d61a671466b9a32ff4cdef2 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test slicing expressions on slices and Vecs.
 
-#![feature(slicing_syntax)]
-
 fn main() {
     let x: &[int] = &[1, 2, 3, 4, 5];
     let cmp: &[int] = &[1, 2, 3, 4, 5];
index 8b9a3f10a60bc744a06fd3aced3b3374569dfe77..b2e3d83ca9b36791513f748c6b3c9e07464c91bf 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test that if a slicing expr[..] fails, the correct cleanups happen.
 
-#![feature(slicing_syntax)]
-
 use std::thread::Thread;
 
 struct Foo;
index 94a0530bffb9437136f19a55c856cb8f33f1d6e8..dea45e63ab000db72e4614059cc3d40d9e2d60f0 100644 (file)
@@ -10,8 +10,6 @@
 
 // Test that if a slicing expr[..] fails, the correct cleanups happen.
 
-#![feature(slicing_syntax)]
-
 use std::thread::Thread;
 
 struct Foo;
index 6a382c076d7b87e59fd4e9edb0637758bf985c50..9cb7cfd7fe98bc80a41efc7544424e49076f26ce 100644 (file)
@@ -10,7 +10,6 @@
 
 // Test slicing sugar.
 
-#![feature(slicing_syntax)]
 #![feature(associated_types)]
 
 extern crate core;