Revert "Put slicing syntax behind a feature gate."

This reverts commit 95cfc35607.
This commit is contained in:
Aaron Turon 2014-10-02 11:47:51 -07:00
parent 2f365ffdad
commit 7bf56df4c8
43 changed files with 43 additions and 105 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::sync::Future;

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::os;

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::io;
use std::io::{BufferedWriter, File};
use std::cmp::min;

View file

@ -13,8 +13,6 @@
// multi tasking k-nucleotide
#![feature(slicing_syntax)]
extern crate collections;
use std::collections::HashMap;

View file

@ -40,8 +40,6 @@
// ignore-android see #10393 #13206
#![feature(slicing_syntax)]
use std::string::String;
use std::slice;
use std::sync::{Arc, Future};

View file

@ -41,7 +41,7 @@
// ignore-stage1
// ignore-cross-compile #12102
#![feature(macro_rules, phase, slicing_syntax)]
#![feature(macro_rules, phase)]
extern crate regex;
#[phase(plugin)]extern crate regex_macros;

View file

@ -41,8 +41,6 @@
// ignore-pretty very bad with line comments
// ignore-android doesn't terminate?
#![feature(slicing_syntax)]
use std::iter::range_step;
use std::io::{stdin, stdout, File};

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];
//~^ ERROR cannot determine a type for this local variable: cannot determine the type of this integ

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

@ -80,7 +80,6 @@
// lldb-check:[...]$5 = &[AStruct { x: 10, y: 11, z: 12 }, AStruct { x: 13, y: 14, z: 15 }]
#![allow(unused_variable)]
#![feature(slicing_syntax)]
struct AStruct {
x: i16,

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,7 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(slicing_syntax)]
extern crate debug;

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 is a slicing expr[..] fails, the correct cleanups happen.
#![feature(slicing_syntax)]
use std::task;
struct Foo;

View file

@ -10,8 +10,6 @@
// Test that is a slicing expr[..] fails, the correct cleanups happen.
#![feature(slicing_syntax)]
use std::task;
struct Foo;

View file

@ -10,8 +10,6 @@
// Test slicing sugar.
#![feature(slicing_syntax)]
extern crate core;
use core::ops::{Slice,SliceMut};