Remove uses of default_type_params feature gate from tests.

This commit is contained in:
Huon Wilson 2015-01-05 17:36:00 +11:00
parent b98a589e23
commit 3e9d5938cc
27 changed files with 7 additions and 48 deletions

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
pub struct Heap;
pub struct FakeHeap;

View File

@ -12,7 +12,7 @@
// just propagate the error.
#![crate_type = "lib"]
#![feature(default_type_params, lang_items)]
#![feature(lang_items)]
#![no_std]
#[lang="sized"]

View File

@ -10,8 +10,6 @@
// Test that binary operators consume their arguments
#![feature(default_type_params)]
use std::ops::{Add, Sub, Mul, Div, Rem, BitAnd, BitXor, BitOr, Shl, Shr};
fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {

View File

@ -10,8 +10,6 @@
// Test that move restrictions are enforced on overloaded binary operations
#![feature(default_type_params)]
use std::ops::Add;
fn double_move<T: Add<Output=()>>(x: T) {

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
use std::ops::Add;
#[derive(Copy)]

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
struct Foo<A, B, C = (A, B)>;
impl<A, B, C = (A, B)> Foo<A, B, C> {

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
struct Heap;
struct Vec<T, A = Heap>;

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
struct Heap;
struct Vec<A = Heap, T>; //~ ERROR type parameters with a default must be trailing

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
struct Heap;
struct Vec<T, A = Heap>;

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
struct Heap;
struct Vec<T, A = Heap>;

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
// Ensure that we get an error and not an ICE for this problematic case.
struct Foo<T = Option<U>, U = bool>;
//~^ ERROR type parameters with a default cannot use forward declared identifiers

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
struct A;
struct B;
struct C;

View File

@ -11,7 +11,7 @@
// Test interaction between unboxed closure sugar and default type
// parameters (should be exactly as if angle brackets were used).
#![feature(default_type_params, unboxed_closures)]
#![feature(unboxed_closures)]
#![allow(dead_code)]
trait Foo<T,U,V=T> {

View File

@ -12,7 +12,7 @@
// parameters (should be exactly as if angle brackets were used
// and regions omitted).
#![feature(default_type_params, unboxed_closures)]
#![feature(unboxed_closures)]
#![allow(dead_code)]
use std::kinds::marker;

View File

@ -13,8 +13,6 @@
// (In this case the mul method should take &f64 and not f64)
// See: #11450
#![feature(default_type_params)]
use std::ops::Mul;
struct Vec1 {

View File

@ -14,8 +14,6 @@
// `Target=[A]`, then the impl marked with `(*)` is seen to conflict
// with all the others.
#![feature(default_type_params)]
use std::ops::Deref;
pub trait MyEq<Sized? U=Self> for Sized? {

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
#[derive(PartialEq)]
struct Bar;
struct Baz;

View File

@ -10,8 +10,6 @@
// aux-build:default_type_params_xc.rs
#![feature(default_type_params)]
extern crate default_type_params_xc;
struct Vec<T, A = default_type_params_xc::Heap>;

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
struct Foo<A = (int, char)> {
a: A
}

View File

@ -15,8 +15,6 @@
// when this bug was opened. The cases where the compiler
// panics before the fix have a comment.
#![feature(default_type_params)]
use std::thunk::Thunk;
struct S {x:()}

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
pub type BigRat<T = int> = T;
fn main() {}

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params, unboxed_closures)]
#![feature(unboxed_closures)]
use std::thunk::Thunk;

View File

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params, unboxed_closures)]
#![feature(unboxed_closures)]
use std::thunk::Thunk;

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(default_type_params)]
use std::thread::Thread;
use std::sync::mpsc::Sender;
use std::thunk::Invoke;

View File

@ -10,7 +10,7 @@
// If `Mul` used an associated type for its output, this test would
// work more smoothly.
#![feature(default_type_params, old_orphan_check)]
#![feature(old_orphan_check)]
use std::ops::Mul;

View File

@ -11,8 +11,6 @@
// Test that we can overload the `+` operator for points so that two
// points can be added, and a point can be added to an integer.
#![feature(default_type_params)]
use std::ops;
#[derive(Show,PartialEq,Eq)]

View File

@ -10,7 +10,7 @@
// Tests that nested vtables work with overloaded calls.
#![feature(default_type_params, unboxed_closures)]
#![feature(unboxed_closures)]
use std::ops::Fn;
use std::ops::Add;
@ -27,4 +27,3 @@ fn main() {
// ICE trigger
G(1i);
}