Skip to content

Commit 3e9d593

Browse files
committed
Remove uses of default_type_params feature gate from tests.
1 parent b98a589 commit 3e9d593

27 files changed

+7
-48
lines changed

src/test/auxiliary/default_type_params_xc.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
pub struct Heap;
1412

1513
pub struct FakeHeap;

src/test/compile-fail/associated-types-ICE-when-projecting-out-of-err.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// just propagate the error.
1313

1414
#![crate_type = "lib"]
15-
#![feature(default_type_params, lang_items)]
15+
#![feature(lang_items)]
1616
#![no_std]
1717

1818
#[lang="sized"]

src/test/compile-fail/binop-consume-args.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Test that binary operators consume their arguments
1212

13-
#![feature(default_type_params)]
14-
1513
use std::ops::{Add, Sub, Mul, Div, Rem, BitAnd, BitXor, BitOr, Shl, Shr};
1614

1715
fn add<A: Add<B, Output=()>, B>(lhs: A, rhs: B) {

src/test/compile-fail/binop-move-semantics.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// Test that move restrictions are enforced on overloaded binary operations
1212

13-
#![feature(default_type_params)]
14-
1513
use std::ops::Add;
1614

1715
fn double_move<T: Add<Output=()>>(x: T) {

src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
use std::ops::Add;
1412

1513
#[derive(Copy)]

src/test/compile-fail/generic-impl-less-params-with-defaults.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
struct Foo<A, B, C = (A, B)>;
1412

1513
impl<A, B, C = (A, B)> Foo<A, B, C> {

src/test/compile-fail/generic-impl-more-params-with-defaults.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
struct Heap;
1412

1513
struct Vec<T, A = Heap>;

src/test/compile-fail/generic-non-trailing-defaults.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
struct Heap;
1412

1513
struct Vec<A = Heap, T>; //~ ERROR type parameters with a default must be trailing

src/test/compile-fail/generic-type-less-params-with-defaults.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
struct Heap;
1412

1513
struct Vec<T, A = Heap>;

src/test/compile-fail/generic-type-more-params-with-defaults.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
struct Heap;
1412

1513
struct Vec<T, A = Heap>;

src/test/compile-fail/generic-type-params-forward-mention.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
// Ensure that we get an error and not an ICE for this problematic case.
1412
struct Foo<T = Option<U>, U = bool>;
1513
//~^ ERROR type parameters with a default cannot use forward declared identifiers

src/test/compile-fail/generic-type-params-name-repr.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
struct A;
1412
struct B;
1513
struct C;

src/test/compile-fail/unboxed-closure-sugar-default.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Test interaction between unboxed closure sugar and default type
1212
// parameters (should be exactly as if angle brackets were used).
1313

14-
#![feature(default_type_params, unboxed_closures)]
14+
#![feature(unboxed_closures)]
1515
#![allow(dead_code)]
1616

1717
trait Foo<T,U,V=T> {

src/test/compile-fail/unboxed-closure-sugar-region.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// parameters (should be exactly as if angle brackets were used
1313
// and regions omitted).
1414

15-
#![feature(default_type_params, unboxed_closures)]
15+
#![feature(unboxed_closures)]
1616
#![allow(dead_code)]
1717

1818
use std::kinds::marker;

src/test/compile-fail/wrong-mul-method-signature.rs

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
// (In this case the mul method should take &f64 and not f64)
1414
// See: #11450
1515

16-
#![feature(default_type_params)]
17-
1816
use std::ops::Mul;
1917

2018
struct Vec1 {

src/test/run-pass/associated-types-conditional-dispatch.rs

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// `Target=[A]`, then the impl marked with `(*)` is seen to conflict
1515
// with all the others.
1616

17-
#![feature(default_type_params)]
18-
1917
use std::ops::Deref;
2018

2119
pub trait MyEq<Sized? U=Self> for Sized? {

src/test/run-pass/eq-multidispatch.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
#[derive(PartialEq)]
1412
struct Bar;
1513
struct Baz;

src/test/run-pass/generic-default-type-params-cross-crate.rs

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
// aux-build:default_type_params_xc.rs
1212

13-
#![feature(default_type_params)]
14-
1513
extern crate default_type_params_xc;
1614

1715
struct Vec<T, A = default_type_params_xc::Heap>;

src/test/run-pass/generic-default-type-params.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
struct Foo<A = (int, char)> {
1412
a: A
1513
}

src/test/run-pass/issue-11709.rs

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
// when this bug was opened. The cases where the compiler
1616
// panics before the fix have a comment.
1717

18-
#![feature(default_type_params)]
19-
2018
use std::thunk::Thunk;
2119

2220
struct S {x:()}

src/test/run-pass/issue-14933.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
pub type BigRat<T = int> = T;
1412

1513
fn main() {}

src/test/run-pass/issue-17897.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params, unboxed_closures)]
11+
#![feature(unboxed_closures)]
1212

1313
use std::thunk::Thunk;
1414

src/test/run-pass/issue-18188.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params, unboxed_closures)]
11+
#![feature(unboxed_closures)]
1212

1313
use std::thunk::Thunk;
1414

src/test/run-pass/issue-3609.rs

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![feature(default_type_params)]
12-
1311
use std::thread::Thread;
1412
use std::sync::mpsc::Sender;
1513
use std::thunk::Invoke;

src/test/run-pass/issue-3743.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// If `Mul` used an associated type for its output, this test would
1212
// work more smoothly.
13-
#![feature(default_type_params, old_orphan_check)]
13+
#![feature(old_orphan_check)]
1414

1515
use std::ops::Mul;
1616

src/test/run-pass/operator-multidispatch.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Test that we can overload the `+` operator for points so that two
1212
// points can be added, and a point can be added to an integer.
1313

14-
#![feature(default_type_params)]
15-
1614
use std::ops;
1715

1816
#[derive(Show,PartialEq,Eq)]

src/test/run-pass/overloaded-calls-param-vtables.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// Tests that nested vtables work with overloaded calls.
1212

13-
#![feature(default_type_params, unboxed_closures)]
13+
#![feature(unboxed_closures)]
1414

1515
use std::ops::Fn;
1616
use std::ops::Add;
@@ -27,4 +27,3 @@ fn main() {
2727
// ICE trigger
2828
G(1i);
2929
}
30-

0 commit comments

Comments
 (0)