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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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

Lines changed: 0 additions & 2 deletions
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>;

0 commit comments

Comments
 (0)