Remove uses of default_type_params feature gate from tests.
This commit is contained in:
parent
b98a589e23
commit
3e9d5938cc
27 changed files with 7 additions and 48 deletions
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
pub struct Heap;
|
pub struct Heap;
|
||||||
|
|
||||||
pub struct FakeHeap;
|
pub struct FakeHeap;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// just propagate the error.
|
// just propagate the error.
|
||||||
|
|
||||||
#![crate_type = "lib"]
|
#![crate_type = "lib"]
|
||||||
#![feature(default_type_params, lang_items)]
|
#![feature(lang_items)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
#[lang="sized"]
|
#[lang="sized"]
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
// Test that binary operators consume their arguments
|
// Test that binary operators consume their arguments
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
use std::ops::{Add, Sub, Mul, Div, Rem, BitAnd, BitXor, BitOr, Shl, Shr};
|
use std::ops::{Add, Sub, Mul, Div, Rem, BitAnd, BitXor, BitOr, Shl, Shr};
|
||||||
|
|
||||||
fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
|
fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
// Test that move restrictions are enforced on overloaded binary operations
|
// Test that move restrictions are enforced on overloaded binary operations
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
use std::ops::Add;
|
use std::ops::Add;
|
||||||
|
|
||||||
fn double_move<T: Add<Output=()>>(x: T) {
|
fn double_move<T: Add<Output=()>>(x: T) {
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
use std::ops::Add;
|
use std::ops::Add;
|
||||||
|
|
||||||
#[derive(Copy)]
|
#[derive(Copy)]
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
struct Foo<A, B, C = (A, B)>;
|
struct Foo<A, B, C = (A, B)>;
|
||||||
|
|
||||||
impl<A, B, C = (A, B)> Foo<A, B, C> {
|
impl<A, B, C = (A, B)> Foo<A, B, C> {
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
struct Heap;
|
struct Heap;
|
||||||
|
|
||||||
struct Vec<T, A = Heap>;
|
struct Vec<T, A = Heap>;
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
struct Heap;
|
struct Heap;
|
||||||
|
|
||||||
struct Vec<A = Heap, T>; //~ ERROR type parameters with a default must be trailing
|
struct Vec<A = Heap, T>; //~ ERROR type parameters with a default must be trailing
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
struct Heap;
|
struct Heap;
|
||||||
|
|
||||||
struct Vec<T, A = Heap>;
|
struct Vec<T, A = Heap>;
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
struct Heap;
|
struct Heap;
|
||||||
|
|
||||||
struct Vec<T, A = Heap>;
|
struct Vec<T, A = Heap>;
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
// Ensure that we get an error and not an ICE for this problematic case.
|
// Ensure that we get an error and not an ICE for this problematic case.
|
||||||
struct Foo<T = Option<U>, U = bool>;
|
struct Foo<T = Option<U>, U = bool>;
|
||||||
//~^ ERROR type parameters with a default cannot use forward declared identifiers
|
//~^ ERROR type parameters with a default cannot use forward declared identifiers
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
struct A;
|
struct A;
|
||||||
struct B;
|
struct B;
|
||||||
struct C;
|
struct C;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
// Test interaction between unboxed closure sugar and default type
|
// Test interaction between unboxed closure sugar and default type
|
||||||
// parameters (should be exactly as if angle brackets were used).
|
// parameters (should be exactly as if angle brackets were used).
|
||||||
|
|
||||||
#![feature(default_type_params, unboxed_closures)]
|
#![feature(unboxed_closures)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
trait Foo<T,U,V=T> {
|
trait Foo<T,U,V=T> {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// parameters (should be exactly as if angle brackets were used
|
// parameters (should be exactly as if angle brackets were used
|
||||||
// and regions omitted).
|
// and regions omitted).
|
||||||
|
|
||||||
#![feature(default_type_params, unboxed_closures)]
|
#![feature(unboxed_closures)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
use std::kinds::marker;
|
use std::kinds::marker;
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
// (In this case the mul method should take &f64 and not f64)
|
// (In this case the mul method should take &f64 and not f64)
|
||||||
// See: #11450
|
// See: #11450
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
use std::ops::Mul;
|
use std::ops::Mul;
|
||||||
|
|
||||||
struct Vec1 {
|
struct Vec1 {
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
// `Target=[A]`, then the impl marked with `(*)` is seen to conflict
|
// `Target=[A]`, then the impl marked with `(*)` is seen to conflict
|
||||||
// with all the others.
|
// with all the others.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
|
|
||||||
pub trait MyEq<Sized? U=Self> for Sized? {
|
pub trait MyEq<Sized? U=Self> for Sized? {
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
#[derive(PartialEq)]
|
#[derive(PartialEq)]
|
||||||
struct Bar;
|
struct Bar;
|
||||||
struct Baz;
|
struct Baz;
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
|
|
||||||
// aux-build:default_type_params_xc.rs
|
// aux-build:default_type_params_xc.rs
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
extern crate default_type_params_xc;
|
extern crate default_type_params_xc;
|
||||||
|
|
||||||
struct Vec<T, A = default_type_params_xc::Heap>;
|
struct Vec<T, A = default_type_params_xc::Heap>;
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
struct Foo<A = (int, char)> {
|
struct Foo<A = (int, char)> {
|
||||||
a: A
|
a: A
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,6 @@
|
||||||
// when this bug was opened. The cases where the compiler
|
// when this bug was opened. The cases where the compiler
|
||||||
// panics before the fix have a comment.
|
// panics before the fix have a comment.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
use std::thunk::Thunk;
|
use std::thunk::Thunk;
|
||||||
|
|
||||||
struct S {x:()}
|
struct S {x:()}
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
pub type BigRat<T = int> = T;
|
pub type BigRat<T = int> = T;
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params, unboxed_closures)]
|
#![feature(unboxed_closures)]
|
||||||
|
|
||||||
use std::thunk::Thunk;
|
use std::thunk::Thunk;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params, unboxed_closures)]
|
#![feature(unboxed_closures)]
|
||||||
|
|
||||||
use std::thunk::Thunk;
|
use std::thunk::Thunk;
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
use std::thread::Thread;
|
use std::thread::Thread;
|
||||||
use std::sync::mpsc::Sender;
|
use std::sync::mpsc::Sender;
|
||||||
use std::thunk::Invoke;
|
use std::thunk::Invoke;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
// If `Mul` used an associated type for its output, this test would
|
// If `Mul` used an associated type for its output, this test would
|
||||||
// work more smoothly.
|
// work more smoothly.
|
||||||
#![feature(default_type_params, old_orphan_check)]
|
#![feature(old_orphan_check)]
|
||||||
|
|
||||||
use std::ops::Mul;
|
use std::ops::Mul;
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,6 @@
|
||||||
// Test that we can overload the `+` operator for points so that two
|
// 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.
|
// points can be added, and a point can be added to an integer.
|
||||||
|
|
||||||
#![feature(default_type_params)]
|
|
||||||
|
|
||||||
use std::ops;
|
use std::ops;
|
||||||
|
|
||||||
#[derive(Show,PartialEq,Eq)]
|
#[derive(Show,PartialEq,Eq)]
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
// Tests that nested vtables work with overloaded calls.
|
// Tests that nested vtables work with overloaded calls.
|
||||||
|
|
||||||
#![feature(default_type_params, unboxed_closures)]
|
#![feature(unboxed_closures)]
|
||||||
|
|
||||||
use std::ops::Fn;
|
use std::ops::Fn;
|
||||||
use std::ops::Add;
|
use std::ops::Add;
|
||||||
|
@ -27,4 +27,3 @@ fn main() {
|
||||||
// ICE trigger
|
// ICE trigger
|
||||||
G(1i);
|
G(1i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue