Skip to content

Commit ed4bebd

Browse files
author
Jorge Aparicio
committed
remove some slicing_syntax feature gates
1 parent 8327bcc commit ed4bebd

27 files changed

+1
-48
lines changed

src/test/bench/shootout-fannkuch-redux.rs

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
3939
// OF THE POSSIBILITY OF SUCH DAMAGE.
4040

41-
#![feature(slicing_syntax)]
42-
4341
use std::{cmp, iter, mem};
4442
use std::thread::Thread;
4543

src/test/bench/shootout-fasta-redux.rs

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
3939
// OF THE POSSIBILITY OF SUCH DAMAGE.
4040

41-
#![feature(slicing_syntax)]
42-
4341
use std::cmp::min;
4442
use std::io::{stdout, IoResult};
4543
use std::iter::repeat;

src/test/bench/shootout-fasta.rs

-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
3939
// OF THE POSSIBILITY OF SUCH DAMAGE.
4040

41-
#![feature(slicing_syntax)]
42-
4341
use std::cmp::min;
4442
use std::io::{BufferedWriter, File};
4543
use std::io;

src/test/bench/shootout-k-nucleotide-pipes.rs

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
// multi tasking k-nucleotide
1515

16-
#![feature(slicing_syntax)]
17-
1816
use std::ascii::{AsciiExt, OwnedAsciiExt};
1917
use std::cmp::Ordering::{self, Less, Greater, Equal};
2018
use std::collections::HashMap;

src/test/bench/shootout-k-nucleotide.rs

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040

4141
// ignore-android see #10393 #13206
4242

43-
#![feature(slicing_syntax)]
44-
4543
use std::ascii::OwnedAsciiExt;
4644
use std::iter::repeat;
4745
use std::slice;

src/test/bench/shootout-regex-dna.rs

-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
// ignore-stage1
4242
// ignore-cross-compile #12102
4343

44-
#![feature(plugin, slicing_syntax)]
45-
4644
extern crate regex;
4745

4846
use std::io;

src/test/bench/shootout-reverse-complement.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
// ignore-android see #10393 #13206
4242

43-
#![feature(slicing_syntax, unboxed_closures)]
43+
#![feature(unboxed_closures)]
4444

4545
extern crate libc;
4646

src/test/compile-fail/packed-struct-generic-transmute.rs

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
// error-pattern: transmute called on types with different size
1717

18-
#![feature(slicing_syntax)]
19-
2018
use std::mem;
2119

2220
#[repr(packed)]

src/test/compile-fail/range-1.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
// Test range syntax - type errors.
12-
#![feature(slicing_syntax)]
1312

1413
pub fn main() {
1514
// Mixed types.

src/test/compile-fail/range-2.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
// Test range syntax - borrow errors.
12-
#![feature(slicing_syntax)]
1312

1413
pub fn main() {
1514
let r = {

src/test/compile-fail/slice-2.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Test that slicing syntax gives errors if we have not implemented the trait.
1212

13-
#![feature(slicing_syntax)]
14-
1513
struct Foo;
1614

1715
fn main() {

src/test/compile-fail/slice-borrow.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Test slicing expressions doesn't defeat the borrow checker.
1212

13-
#![feature(slicing_syntax)]
14-
1513
fn main() {
1614
let y;
1715
{

src/test/compile-fail/slice-mut-2.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Test mutability and slicing syntax.
1212

13-
#![feature(slicing_syntax)]
14-
1513
fn main() {
1614
let x: &[int] = &[1, 2, 3, 4, 5];
1715
// Can't mutably slice an immutable slice

src/test/compile-fail/slice-mut.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Test mutability and slicing syntax.
1212

13-
#![feature(slicing_syntax)]
14-
1513
fn main() {
1614
let x: &[int] = &[1, 2, 3, 4, 5];
1715
// Immutable slices are not mutable.

src/test/debuginfo/vec-slices.rs

-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
// lldb-check:[...]$5 = &[AStruct { x: 10, y: 11, z: 12 }, AStruct { x: 13, y: 14, z: 15 }]
7878

7979
#![allow(unused_variables)]
80-
#![feature(slicing_syntax)]
8180
#![omit_gdb_pretty_printer_section]
8281

8382
struct AStruct {

src/test/run-pass/issue-15730.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(slicing_syntax)]
12-
1311
fn main() {
1412
let mut array = [1, 2, 3];
1513
let pie_slice = &array[1..2];

src/test/run-pass/issue-17503.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(slicing_syntax)]
12-
1311
fn main() {
1412
let s: &[int] = &[0, 1, 2, 3, 4];
1513
let ss: &&[int] = &s;

src/test/run-pass/issue-20644.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// A reduced version of the rustbook ice. The problem this encountered
1212
// had to do with trans ignoring binders.
1313

14-
#![feature(slicing_syntax)]
1514
#![feature(associated_types)]
1615
#![feature(macro_rules)]
1716

src/test/run-pass/issue-3888-2.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(slicing_syntax)]
12-
1311
fn vec_peek<'r, T>(v: &'r [T]) -> &'r [T] {
1412
&v[1..5]
1513
}

src/test/run-pass/issue-4464.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(slicing_syntax)]
12-
1311
fn broken(v: &[u8], i: uint, j: uint) -> &[u8] { &v[i..j] }
1412

1513
pub fn main() {}

src/test/run-pass/issue-8898.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(slicing_syntax)]
12-
1311
fn assert_repr_eq<T: std::fmt::Show>(obj : T, expected : String) {
1412
assert_eq!(expected, format!("{:?}", obj));
1513
}

src/test/run-pass/range.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Test range syntax.
1212

13-
#![feature(slicing_syntax)]
14-
1513
fn foo() -> int { 42 }
1614

1715
pub fn main() {

src/test/run-pass/repeated-vector-syntax.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(slicing_syntax)]
12-
1311
pub fn main() {
1412
let x = [ [true]; 512 ];
1513
let y = [ 0i; 1 ];

src/test/run-pass/slice-2.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Test slicing expressions on slices and Vecs.
1212

13-
#![feature(slicing_syntax)]
14-
1513
fn main() {
1614
let x: &[int] = &[1, 2, 3, 4, 5];
1715
let cmp: &[int] = &[1, 2, 3, 4, 5];

src/test/run-pass/slice-panic-1.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Test that if a slicing expr[..] fails, the correct cleanups happen.
1212

13-
#![feature(slicing_syntax)]
14-
1513
use std::thread::Thread;
1614

1715
struct Foo;

src/test/run-pass/slice-panic-2.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Test that if a slicing expr[..] fails, the correct cleanups happen.
1212

13-
#![feature(slicing_syntax)]
14-
1513
use std::thread::Thread;
1614

1715
struct Foo;

src/test/run-pass/slice.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// Test slicing sugar.
1212

13-
#![feature(slicing_syntax)]
1413
#![feature(associated_types)]
1514

1615
extern crate core;

0 commit comments

Comments
 (0)