mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Remove uses of default_type_params feature gate from tests.
This commit is contained in:
parent
b98a589e23
commit
3e9d5938cc
@ -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;
|
||||
|
@ -12,7 +12,7 @@
|
||||
// just propagate the error.
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![feature(default_type_params, lang_items)]
|
||||
#![feature(lang_items)]
|
||||
#![no_std]
|
||||
|
||||
#[lang="sized"]
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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)]
|
||||
|
@ -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> {
|
||||
|
@ -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>;
|
||||
|
@ -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
|
||||
|
@ -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>;
|
||||
|
@ -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>;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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> {
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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? {
|
||||
|
@ -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;
|
||||
|
@ -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>;
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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:()}
|
||||
|
@ -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() {}
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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)]
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user