remove some slicing_syntax feature gates

This commit is contained in:
Jorge Aparicio 2015-01-07 18:36:38 -05:00
parent 8327bcc167
commit ed4bebda96
27 changed files with 1 additions and 48 deletions

View 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;

View 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;

View 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;

View 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;

View File

@ -40,8 +40,6 @@
// ignore-android see #10393 #13206
#![feature(slicing_syntax)]
use std::ascii::OwnedAsciiExt;
use std::iter::repeat;
use std::slice;

View File

@ -41,8 +41,6 @@
// ignore-stage1
// ignore-cross-compile #12102
#![feature(plugin, slicing_syntax)]
extern crate regex;
use std::io;

View File

@ -40,7 +40,7 @@
// ignore-android see #10393 #13206
#![feature(slicing_syntax, unboxed_closures)]
#![feature(unboxed_closures)]
extern crate libc;

View File

@ -15,8 +15,6 @@
// error-pattern: transmute called on types with different size
#![feature(slicing_syntax)]
use std::mem;
#[repr(packed)]

View File

@ -9,7 +9,6 @@
// except according to those terms.
// Test range syntax - type errors.
#![feature(slicing_syntax)]
pub fn main() {
// Mixed types.

View File

@ -9,7 +9,6 @@
// except according to those terms.
// Test range syntax - borrow errors.
#![feature(slicing_syntax)]
pub fn main() {
let r = {

View 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() {

View File

@ -10,8 +10,6 @@
// Test slicing expressions doesn't defeat the borrow checker.
#![feature(slicing_syntax)]
fn main() {
let y;
{

View 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

View 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.

View 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 {

View 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];

View 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;

View 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)]

View 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]
}

View 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() {}

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

View File

@ -10,8 +10,6 @@
// Test range syntax.
#![feature(slicing_syntax)]
fn foo() -> int { 42 }
pub fn main() {

View 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 ];

View 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];

View 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;

View 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;

View File

@ -10,7 +10,6 @@
// Test slicing sugar.
#![feature(slicing_syntax)]
#![feature(associated_types)]
extern crate core;