Skip to content

Commit 4016c72

Browse files
committed
Remove use of associated_types feature gate from tests.
1 parent 6e3d78f commit 4016c72

File tree

111 files changed

+17
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+17
-219
lines changed

src/test/auxiliary/associated-types-cc-lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// cross-crate scenario.
1313

1414
#![crate_type="lib"]
15-
#![feature(associated_types)]
1615

1716
pub trait Bar {
1817
type T;

src/test/auxiliary/issue-16643.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![crate_type = "lib"]
12-
#![feature(associated_types)]
1312

1413
pub struct TreeBuilder<H>;
1514

src/test/auxiliary/issue_20389.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(associated_types)]
12-
1311
pub trait T {
1412
type C;
1513
}

src/test/auxiliary/overloaded_autoderef_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(associated_types)]
12-
1311
use std::ops::Deref;
1412

1513
struct DerefWithHelper<H, T> {

src/test/auxiliary/trait_inheritance_overloading_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(associated_types)]
12-
1311
use std::cmp::PartialEq;
1412
use std::ops::{Add, Sub, Mul};
1513

src/test/bench/shootout-fasta.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
3939
// OF THE POSSIBILITY OF SUCH DAMAGE.
4040

41-
#![feature(associated_types, slicing_syntax)]
41+
#![feature(slicing_syntax)]
4242

4343
use std::cmp::min;
4444
use std::io::{BufferedWriter, File};

src/test/bench/shootout-k-nucleotide.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
// ignore-android see #10393 #13206
4242

43-
#![feature(associated_types, slicing_syntax)]
43+
#![feature(slicing_syntax)]
4444

4545
use std::ascii::OwnedAsciiExt;
4646
use std::iter::repeat;

src/test/bench/shootout-meteor.rs

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@
4040

4141
// no-pretty-expanded FIXME #15189
4242

43-
#![feature(associated_types)]
44-
4543
use std::iter::repeat;
4644
use std::sync::Arc;
4745
use std::sync::mpsc::channel;

src/test/bench/shootout-reverse-complement.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
// ignore-android see #10393 #13206
4242

43-
#![feature(associated_types, slicing_syntax, unboxed_closures)]
43+
#![feature(slicing_syntax, unboxed_closures)]
4444

4545
extern crate libc;
4646

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(associated_types, default_type_params, lang_items)]
15+
#![feature(default_type_params, lang_items)]
1616
#![no_std]
1717

1818
#[lang="sized"]

src/test/compile-fail/associated-types-bound-failure.rs

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

1111
// Test equality constraints on associated types in a where clause.
1212

13-
#![feature(associated_types)]
14-
1513
pub trait ToInt {
1614
fn to_int(&self) -> int;
1715
}

src/test/compile-fail/associated-types-eq-1.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Test equality constraints on associated types. Check that unsupported syntax
1212
// does not ICE.
1313

14-
#![feature(associated_types)]
15-
1614
pub trait Foo {
1715
type A;
1816
fn boo(&self) -> <Self as Foo>::A;

src/test/compile-fail/associated-types-eq-2.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Test equality constraints on associated types. Check we get an error when an
1212
// equality constraint is used in a qualified path.
1313

14-
#![feature(associated_types)]
15-
1614
pub trait Foo {
1715
type A;
1816
fn boo(&self) -> <Self as Foo>::A;

src/test/compile-fail/associated-types-eq-3.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Test equality constraints on associated types. Check we get type errors
1212
// where we should.
1313

14-
#![feature(associated_types)]
15-
1614
pub trait Foo {
1715
type A;
1816
fn boo(&self) -> <Self as Foo>::A;

src/test/compile-fail/associated-types-eq-expr-path.rs

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

1111
// Check that an associated type cannot be bound in an expression path.
1212

13-
#![feature(associated_types)]
14-
1513
trait Foo {
1614
type A;
1715
fn bar() -> int;

src/test/compile-fail/associated-types-eq-hr.rs

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

1111
// Check testing of equality constraints in a higher-ranked context.
1212

13-
#![feature(associated_types)]
14-
1513
pub trait TheTrait<T> {
1614
type A;
1715

src/test/compile-fail/associated-types-for-unimpl-trait.rs

-3
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(associated_types)]
12-
1311
trait Get {
1412
type Value;
1513
fn get(&self) -> <Self as Get>::Value;
@@ -22,4 +20,3 @@ trait Other {
2220

2321
fn main() {
2422
}
25-

src/test/compile-fail/associated-types-in-ambiguous-context.rs

-3
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(associated_types)]
12-
1311
trait Get {
1412
type Value;
1513
fn get(&self) -> <Self as Get>::Value;
@@ -26,4 +24,3 @@ trait Grab {
2624

2725
fn main() {
2826
}
29-

src/test/compile-fail/associated-types-incomplete-object.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Check that the user gets an errror if they omit a binding from an
1212
// object type.
1313

14-
#![feature(associated_types)]
15-
1614
pub trait Foo {
1715
type A;
1816
type B;

src/test/compile-fail/associated-types-issue-20346.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// Test that we reliably check the value of the associated type.
1212

1313
#![crate_type = "lib"]
14-
#![feature(associated_types)]
1514
#![no_implicit_prelude]
1615

1716
use std::option::Option::{self, None, Some};

src/test/compile-fail/associated-types-no-suitable-bound.rs

-3
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(associated_types)]
12-
1311
trait Get {
1412
type Value;
1513
fn get(&self) -> <Self as Get>::Value;
@@ -26,4 +24,3 @@ impl Struct {
2624

2725
fn main() {
2826
}
29-

src/test/compile-fail/associated-types-no-suitable-supertrait.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(associated_types)]
12-
1311
// Check that we get an error when you use `<Self as Get>::Value` in
1412
// the trait definition but `Self` does not, in fact, implement `Get`.
1513

src/test/compile-fail/associated-types-path-1.rs

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

1111
// Test that we have one and only one associated type per ref.
1212

13-
#![feature(associated_types)]
14-
1513
pub trait Foo {
1614
type A;
1715
}
@@ -23,4 +21,3 @@ pub fn f1<T>(a: T, x: T::A) {} //~ERROR associated type `A` not found
2321
pub fn f2<T: Foo + Bar>(a: T, x: T::A) {} //~ERROR ambiguous associated type `A`
2422

2523
pub fn main() {}
26-

src/test/compile-fail/associated-types-path-2.rs

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

1111
// Test type checking of uses of associated types via sugary paths.
1212

13-
#![feature(associated_types)]
14-
1513
pub trait Foo {
1614
type A;
1715
}

src/test/compile-fail/associated-types-project-from-hrtb-explicit.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Test you can't use a higher-ranked trait bound inside of a qualified
1212
// path (just won't parse).
1313

14-
#![feature(associated_types)]
15-
1614
pub trait Foo<T> {
1715
type A;
1816

src/test/compile-fail/associated-types-project-from-hrtb-in-fn-body.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Check projection of an associated type out of a higher-ranked
1212
// trait-bound in the context of a function body.
1313

14-
#![feature(associated_types)]
15-
1614
pub trait Foo<T> {
1715
type A;
1816

src/test/compile-fail/associated-types-project-from-hrtb-in-fn.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Check projection of an associated type out of a higher-ranked trait-bound
1212
// in the context of a function signature.
1313

14-
#![feature(associated_types)]
15-
1614
pub trait Foo<T> {
1715
type A;
1816

src/test/compile-fail/associated-types-project-from-hrtb-in-struct.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Check projection of an associated type out of a higher-ranked trait-bound
1212
// in the context of a struct definition.
1313

14-
#![feature(associated_types)]
15-
1614
pub trait Foo<T> {
1715
type A;
1816

src/test/compile-fail/associated-types-project-from-hrtb-in-trait-method.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Check projection of an associated type out of a higher-ranked trait-bound
1212
// in the context of a method definition in a trait.
1313

14-
#![feature(associated_types)]
15-
1614
pub trait Foo<T> {
1715
type A;
1816

src/test/compile-fail/associated-types-unconstrained.rs

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

1111
// Check that an associated type cannot be bound in an expression path.
1212

13-
#![feature(associated_types)]
14-
1513
trait Foo {
1614
type A;
1715
fn bar() -> int;

src/test/compile-fail/associated-types-unsized.rs

-3
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(associated_types)]
12-
1311
trait Get {
1412
type Sized? Value;
1513
fn get(&self) -> <Self as Get>::Value;
@@ -21,4 +19,3 @@ fn foo<T:Get>(t: T) {
2119

2220
fn main() {
2321
}
24-

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

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

1111
// Test that binary operators consume their arguments
1212

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

1515
use std::ops::{Add, Sub, Mul, Div, Rem, BitAnd, BitXor, BitOr, Shl, Shr};
1616

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

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

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

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

1515
use std::ops::Add;
1616

src/test/compile-fail/borrowck-borrow-overloaded-auto-deref-mut.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Test how overloaded deref interacts with borrows when DerefMut
1212
// is implemented.
1313

14-
#![feature(associated_types)]
15-
1614
use std::ops::{Deref, DerefMut};
1715

1816
struct Own<T> {

src/test/compile-fail/borrowck-borrow-overloaded-auto-deref.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Test how overloaded deref interacts with borrows when only
1212
// Deref and not DerefMut is implemented.
1313

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

1816
struct Rc<T> {

src/test/compile-fail/borrowck-borrow-overloaded-deref-mut.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Test how overloaded deref interacts with borrows when DerefMut
1212
// is implemented.
1313

14-
#![feature(associated_types)]
15-
1614
use std::ops::{Deref, DerefMut};
1715

1816
struct Own<T> {

src/test/compile-fail/borrowck-borrow-overloaded-deref.rs

-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Test how overloaded deref interacts with borrows when only
1212
// Deref and not DerefMut is implemented.
1313

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

1816
struct Rc<T> {

src/test/compile-fail/borrowck-loan-in-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(associated_types)]
12-
1311
use std::ops::Add;
1412

1513
#[derive(Clone)]

src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.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(associated_types, default_type_params)]
11+
#![feature(default_type_params)]
1212

1313
use std::ops::Add;
1414

src/test/compile-fail/borrowck-overloaded-index-2.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(associated_types)]
12-
1311
use std::ops::Index;
1412

1513
struct MyVec<T> {

src/test/compile-fail/borrowck-overloaded-index-autoderef.rs

-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// Test that we still see borrowck errors of various kinds when using
1212
// indexing and autoderef in combination.
1313

14-
#![feature(associated_types)]
15-
1614
use std::ops::{Index, IndexMut};
1715

1816
struct Foo {
@@ -95,5 +93,3 @@ fn test9(mut f: Box<Bar>, g: Bar, s: String) {
9593

9694
fn main() {
9795
}
98-
99-

0 commit comments

Comments
 (0)