remove some slicing_syntax
feature gates
This commit is contained in:
parent
8327bcc167
commit
ed4bebda96
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -40,8 +40,6 @@
|
||||
|
||||
// ignore-android see #10393 #13206
|
||||
|
||||
#![feature(slicing_syntax)]
|
||||
|
||||
use std::ascii::OwnedAsciiExt;
|
||||
use std::iter::repeat;
|
||||
use std::slice;
|
||||
|
@ -41,8 +41,6 @@
|
||||
// ignore-stage1
|
||||
// ignore-cross-compile #12102
|
||||
|
||||
#![feature(plugin, slicing_syntax)]
|
||||
|
||||
extern crate regex;
|
||||
|
||||
use std::io;
|
||||
|
@ -40,7 +40,7 @@
|
||||
|
||||
// ignore-android see #10393 #13206
|
||||
|
||||
#![feature(slicing_syntax, unboxed_closures)]
|
||||
#![feature(unboxed_closures)]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
|
@ -15,8 +15,6 @@
|
||||
|
||||
// error-pattern: transmute called on types with different size
|
||||
|
||||
#![feature(slicing_syntax)]
|
||||
|
||||
use std::mem;
|
||||
|
||||
#[repr(packed)]
|
||||
|
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
// Test range syntax - type errors.
|
||||
#![feature(slicing_syntax)]
|
||||
|
||||
pub fn main() {
|
||||
// Mixed types.
|
||||
|
@ -9,7 +9,6 @@
|
||||
// except according to those terms.
|
||||
|
||||
// Test range syntax - borrow errors.
|
||||
#![feature(slicing_syntax)]
|
||||
|
||||
pub fn main() {
|
||||
let r = {
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// Test that slicing syntax gives errors if we have not implemented the trait.
|
||||
|
||||
#![feature(slicing_syntax)]
|
||||
|
||||
struct Foo;
|
||||
|
||||
fn main() {
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// Test slicing expressions doesn't defeat the borrow checker.
|
||||
|
||||
#![feature(slicing_syntax)]
|
||||
|
||||
fn main() {
|
||||
let y;
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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 {
|
||||
|
@ -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];
|
||||
|
@ -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;
|
||||
|
@ -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)]
|
||||
|
||||
|
@ -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]
|
||||
}
|
||||
|
@ -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() {}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// Test range syntax.
|
||||
|
||||
#![feature(slicing_syntax)]
|
||||
|
||||
fn foo() -> int { 42 }
|
||||
|
||||
pub fn main() {
|
||||
|
@ -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 ];
|
||||
|
@ -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];
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// Test that if a slicing expr[..] fails, the correct cleanups happen.
|
||||
|
||||
#![feature(slicing_syntax)]
|
||||
|
||||
use std::thread::Thread;
|
||||
|
||||
struct Foo;
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
// Test that if a slicing expr[..] fails, the correct cleanups happen.
|
||||
|
||||
#![feature(slicing_syntax)]
|
||||
|
||||
use std::thread::Thread;
|
||||
|
||||
struct Foo;
|
||||
|
@ -10,7 +10,6 @@
|
||||
|
||||
// Test slicing sugar.
|
||||
|
||||
#![feature(slicing_syntax)]
|
||||
#![feature(associated_types)]
|
||||
|
||||
extern crate core;
|
||||
|
Loading…
Reference in New Issue
Block a user