Skip to content

Commit 4c0ac6d

Browse files
committed
Remove obsolete "MarkerTrait" from tests.
1 parent b1db4ec commit 4c0ac6d

15 files changed

+14
-44
lines changed

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212

1313
#![crate_type="lib"]
1414

15-
use std::marker::MarkerTrait;
16-
1715
// These items are for testing that associated consts work cross-crate.
18-
pub trait Foo: MarkerTrait {
16+
pub trait Foo {
1917
const BAR: usize;
2018
}
2119

@@ -26,7 +24,7 @@ impl Foo for FooNoDefault {
2624
}
2725

2826
// These test that defaults and default resolution work cross-crate.
29-
pub trait FooDefault: MarkerTrait {
27+
pub trait FooDefault {
3028
const BAR: usize = 1;
3129
}
3230

src/test/compile-fail/associated-const-impl-wrong-type.rs

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

1111
#![feature(associated_consts)]
1212

13-
use std::marker::MarkerTrait;
14-
15-
trait Foo: MarkerTrait {
13+
trait Foo {
1614
const BAR: u32;
1715
}
1816

src/test/compile-fail/associated-const-private-impl.rs

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

1111
#![feature(associated_consts)]
1212

13-
use std::marker::MarkerTrait;
14-
1513
mod bar1 {
1614
pub use self::bar2::Foo;
1715
mod bar2 {

src/test/compile-fail/gated-associated_consts.rs

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

11-
use std::marker::MarkerTrait;
12-
13-
trait MyTrait: MarkerTrait {
11+
trait MyTrait {
1412
const C: bool;
1513
//~^ associated constants are experimental
1614
//~| add #![feature(associated_consts)] to the crate attributes to enable

src/test/compile-fail/method-path-in-pattern.rs

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

11-
use std::marker::MarkerTrait;
12-
1311
struct Foo;
1412

1513
impl Foo {
1614
fn bar(&self) {}
1715
}
1816

19-
trait MyTrait: MarkerTrait {
17+
trait MyTrait {
2018
fn trait_bar() {}
2119
}
2220

src/test/compile-fail/method-resolvable-path-in-pattern.rs

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

11-
use std::marker::MarkerTrait;
12-
1311
struct Foo;
1412

15-
trait MyTrait: MarkerTrait {
13+
trait MyTrait {
1614
fn trait_bar() {}
1715
}
1816

src/test/run-pass/associated-const-match-patterns.rs

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

1111
#![feature(associated_consts)]
1212

13-
use std::marker::MarkerTrait;
14-
1513
struct Foo;
1614

1715
enum Bar {
@@ -24,7 +22,7 @@ impl Foo {
2422
const MYBAR: Bar = Bar::Var2;
2523
}
2624

27-
trait HasBar: MarkerTrait {
25+
trait HasBar {
2826
const THEBAR: Bar;
2927
}
3028

src/test/run-pass/associated-const-overwrite-default.rs

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

1111
#![feature(associated_consts)]
1212

13-
use std::marker::MarkerTrait;
14-
15-
trait Foo: MarkerTrait {
13+
trait Foo {
1614
const ID: i32 = 2;
1715
}
1816

src/test/run-pass/associated-const-public-impl.rs

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

1111
#![feature(associated_consts)]
1212

13-
use std::marker::MarkerTrait;
14-
1513
mod bar1 {
1614
pub use self::bar2::Foo;
1715
mod bar2 {

src/test/run-pass/associated-const-resolution-order.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010

1111
#![feature(associated_consts)]
1212

13-
use std::marker::MarkerTrait;
14-
1513
struct MyType;
1614

1715
impl MyType {
1816
const IMPL_IS_INHERENT: bool = true;
1917
}
2018

21-
trait MyTrait: MarkerTrait {
19+
trait MyTrait {
2220
const IMPL_IS_INHERENT: bool;
2321
const IMPL_IS_ON_TRAIT: bool;
2422
}

src/test/run-pass/associated-const-self-type.rs

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

1111
#![feature(associated_consts)]
1212

13-
use std::marker::MarkerTrait;
14-
15-
trait MyInt: MarkerTrait {
13+
trait MyInt {
1614
const ONE: Self;
1715
}
1816

src/test/run-pass/associated-const-ufcs-infer-trait.rs

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

1111
#![feature(associated_consts)]
1212

13-
use std::marker::MarkerTrait;
14-
15-
trait Foo: MarkerTrait {
13+
trait Foo {
1614
const ID: i32;
1715
}
1816

src/test/run-pass/associated-const-use-default.rs

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

1111
#![feature(associated_consts)]
1212

13-
use std::marker::MarkerTrait;
14-
15-
trait Foo: MarkerTrait {
13+
trait Foo {
1614
const ID: i32 = 1;
1715
}
1816

src/test/run-pass/associated-const-use-impl-of-same-trait.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010

1111
#![feature(associated_consts)]
1212

13-
use std::marker::MarkerTrait;
14-
1513
// The main purpose of this test is to ensure that different impls of the same
1614
// trait can refer to each other without setting off the static recursion check
1715
// (as long as there's no actual recursion).
1816

19-
trait Foo: MarkerTrait {
17+
trait Foo {
2018
const BAR: u32;
2119
}
2220

src/test/run-pass/associated-const.rs

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

1111
#![feature(associated_consts)]
1212

13-
use std::marker::MarkerTrait;
14-
15-
trait Foo: MarkerTrait {
13+
trait Foo {
1614
const ID: i32;
1715
}
1816

0 commit comments

Comments
 (0)