about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSean Patrick Santos <SeanPatrickSantos@gmail.com>2015-04-24 22:58:40 -0600
committerSean Patrick Santos <SeanPatrickSantos@gmail.com>2015-04-24 22:58:40 -0600
commit4c0ac6d5ef8aed2cbe0cc687d5e7f8a8c04961a3 (patch)
tree65adbeb50e743346f6ce8c4dbfbecae8c5b5a22b
parentb1db4ec3d0a96a1e83d74fbc7f99dc3be054f4d8 (diff)
downloadrust-4c0ac6d5ef8aed2cbe0cc687d5e7f8a8c04961a3.tar.gz
rust-4c0ac6d5ef8aed2cbe0cc687d5e7f8a8c04961a3.zip
Remove obsolete "MarkerTrait" from tests.
-rw-r--r--src/test/auxiliary/associated-const-cc-lib.rs6
-rw-r--r--src/test/compile-fail/associated-const-impl-wrong-type.rs4
-rw-r--r--src/test/compile-fail/associated-const-private-impl.rs2
-rw-r--r--src/test/compile-fail/gated-associated_consts.rs4
-rw-r--r--src/test/compile-fail/method-path-in-pattern.rs4
-rw-r--r--src/test/compile-fail/method-resolvable-path-in-pattern.rs4
-rw-r--r--src/test/run-pass/associated-const-match-patterns.rs4
-rw-r--r--src/test/run-pass/associated-const-overwrite-default.rs4
-rw-r--r--src/test/run-pass/associated-const-public-impl.rs2
-rw-r--r--src/test/run-pass/associated-const-resolution-order.rs4
-rw-r--r--src/test/run-pass/associated-const-self-type.rs4
-rw-r--r--src/test/run-pass/associated-const-ufcs-infer-trait.rs4
-rw-r--r--src/test/run-pass/associated-const-use-default.rs4
-rw-r--r--src/test/run-pass/associated-const-use-impl-of-same-trait.rs4
-rw-r--r--src/test/run-pass/associated-const.rs4
15 files changed, 14 insertions, 44 deletions
diff --git a/src/test/auxiliary/associated-const-cc-lib.rs b/src/test/auxiliary/associated-const-cc-lib.rs
index 3508fcd54af..1fd8fee0117 100644
--- a/src/test/auxiliary/associated-const-cc-lib.rs
+++ b/src/test/auxiliary/associated-const-cc-lib.rs
@@ -12,10 +12,8 @@
 
 #![crate_type="lib"]
 
-use std::marker::MarkerTrait;
-
 // These items are for testing that associated consts work cross-crate.
-pub trait Foo: MarkerTrait {
+pub trait Foo {
     const BAR: usize;
 }
 
@@ -26,7 +24,7 @@ impl Foo for FooNoDefault {
 }
 
 // These test that defaults and default resolution work cross-crate.
-pub trait FooDefault: MarkerTrait {
+pub trait FooDefault {
     const BAR: usize = 1;
 }
 
diff --git a/src/test/compile-fail/associated-const-impl-wrong-type.rs b/src/test/compile-fail/associated-const-impl-wrong-type.rs
index d76147de3db..4f20d9e78eb 100644
--- a/src/test/compile-fail/associated-const-impl-wrong-type.rs
+++ b/src/test/compile-fail/associated-const-impl-wrong-type.rs
@@ -10,9 +10,7 @@
 
 #![feature(associated_consts)]
 
-use std::marker::MarkerTrait;
-
-trait Foo: MarkerTrait {
+trait Foo {
     const BAR: u32;
 }
 
diff --git a/src/test/compile-fail/associated-const-private-impl.rs b/src/test/compile-fail/associated-const-private-impl.rs
index 4dfe7ea78c5..be949db0281 100644
--- a/src/test/compile-fail/associated-const-private-impl.rs
+++ b/src/test/compile-fail/associated-const-private-impl.rs
@@ -10,8 +10,6 @@
 
 #![feature(associated_consts)]
 
-use std::marker::MarkerTrait;
-
 mod bar1 {
     pub use self::bar2::Foo;
     mod bar2 {
diff --git a/src/test/compile-fail/gated-associated_consts.rs b/src/test/compile-fail/gated-associated_consts.rs
index d508016357c..21672b18bde 100644
--- a/src/test/compile-fail/gated-associated_consts.rs
+++ b/src/test/compile-fail/gated-associated_consts.rs
@@ -8,9 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::marker::MarkerTrait;
-
-trait MyTrait: MarkerTrait {
+trait MyTrait {
     const C: bool;
     //~^ associated constants are experimental
     //~| add #![feature(associated_consts)] to the crate attributes to enable
diff --git a/src/test/compile-fail/method-path-in-pattern.rs b/src/test/compile-fail/method-path-in-pattern.rs
index 1d83f901cdb..faf6d255c9a 100644
--- a/src/test/compile-fail/method-path-in-pattern.rs
+++ b/src/test/compile-fail/method-path-in-pattern.rs
@@ -8,15 +8,13 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::marker::MarkerTrait;
-
 struct Foo;
 
 impl Foo {
     fn bar(&self) {}
 }
 
-trait MyTrait: MarkerTrait {
+trait MyTrait {
     fn trait_bar() {}
 }
 
diff --git a/src/test/compile-fail/method-resolvable-path-in-pattern.rs b/src/test/compile-fail/method-resolvable-path-in-pattern.rs
index f3e93537203..0df824e7f53 100644
--- a/src/test/compile-fail/method-resolvable-path-in-pattern.rs
+++ b/src/test/compile-fail/method-resolvable-path-in-pattern.rs
@@ -8,11 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::marker::MarkerTrait;
-
 struct Foo;
 
-trait MyTrait: MarkerTrait {
+trait MyTrait {
     fn trait_bar() {}
 }
 
diff --git a/src/test/run-pass/associated-const-match-patterns.rs b/src/test/run-pass/associated-const-match-patterns.rs
index 63f77b35170..eeaacbf9dcc 100644
--- a/src/test/run-pass/associated-const-match-patterns.rs
+++ b/src/test/run-pass/associated-const-match-patterns.rs
@@ -10,8 +10,6 @@
 
 #![feature(associated_consts)]
 
-use std::marker::MarkerTrait;
-
 struct Foo;
 
 enum Bar {
@@ -24,7 +22,7 @@ impl Foo {
     const MYBAR: Bar = Bar::Var2;
 }
 
-trait HasBar: MarkerTrait {
+trait HasBar {
     const THEBAR: Bar;
 }
 
diff --git a/src/test/run-pass/associated-const-overwrite-default.rs b/src/test/run-pass/associated-const-overwrite-default.rs
index 5134ad35659..0846ad9a571 100644
--- a/src/test/run-pass/associated-const-overwrite-default.rs
+++ b/src/test/run-pass/associated-const-overwrite-default.rs
@@ -10,9 +10,7 @@
 
 #![feature(associated_consts)]
 
-use std::marker::MarkerTrait;
-
-trait Foo: MarkerTrait {
+trait Foo {
     const ID: i32 = 2;
 }
 
diff --git a/src/test/run-pass/associated-const-public-impl.rs b/src/test/run-pass/associated-const-public-impl.rs
index 686ac19dad1..b1d071799e1 100644
--- a/src/test/run-pass/associated-const-public-impl.rs
+++ b/src/test/run-pass/associated-const-public-impl.rs
@@ -10,8 +10,6 @@
 
 #![feature(associated_consts)]
 
-use std::marker::MarkerTrait;
-
 mod bar1 {
     pub use self::bar2::Foo;
     mod bar2 {
diff --git a/src/test/run-pass/associated-const-resolution-order.rs b/src/test/run-pass/associated-const-resolution-order.rs
index ad20c084ff4..98b7164ab74 100644
--- a/src/test/run-pass/associated-const-resolution-order.rs
+++ b/src/test/run-pass/associated-const-resolution-order.rs
@@ -10,15 +10,13 @@
 
 #![feature(associated_consts)]
 
-use std::marker::MarkerTrait;
-
 struct MyType;
 
 impl MyType {
     const IMPL_IS_INHERENT: bool = true;
 }
 
-trait MyTrait: MarkerTrait {
+trait MyTrait {
     const IMPL_IS_INHERENT: bool;
     const IMPL_IS_ON_TRAIT: bool;
 }
diff --git a/src/test/run-pass/associated-const-self-type.rs b/src/test/run-pass/associated-const-self-type.rs
index dc8b1307f76..d3add976b5a 100644
--- a/src/test/run-pass/associated-const-self-type.rs
+++ b/src/test/run-pass/associated-const-self-type.rs
@@ -10,9 +10,7 @@
 
 #![feature(associated_consts)]
 
-use std::marker::MarkerTrait;
-
-trait MyInt: MarkerTrait {
+trait MyInt {
     const ONE: Self;
 }
 
diff --git a/src/test/run-pass/associated-const-ufcs-infer-trait.rs b/src/test/run-pass/associated-const-ufcs-infer-trait.rs
index 4cee76eb5aa..aa3e14a9397 100644
--- a/src/test/run-pass/associated-const-ufcs-infer-trait.rs
+++ b/src/test/run-pass/associated-const-ufcs-infer-trait.rs
@@ -10,9 +10,7 @@
 
 #![feature(associated_consts)]
 
-use std::marker::MarkerTrait;
-
-trait Foo: MarkerTrait {
+trait Foo {
     const ID: i32;
 }
 
diff --git a/src/test/run-pass/associated-const-use-default.rs b/src/test/run-pass/associated-const-use-default.rs
index 59df2fc41ed..5813d867425 100644
--- a/src/test/run-pass/associated-const-use-default.rs
+++ b/src/test/run-pass/associated-const-use-default.rs
@@ -10,9 +10,7 @@
 
 #![feature(associated_consts)]
 
-use std::marker::MarkerTrait;
-
-trait Foo: MarkerTrait {
+trait Foo {
     const ID: i32 = 1;
 }
 
diff --git a/src/test/run-pass/associated-const-use-impl-of-same-trait.rs b/src/test/run-pass/associated-const-use-impl-of-same-trait.rs
index 6c9c6767cbd..62658470baa 100644
--- a/src/test/run-pass/associated-const-use-impl-of-same-trait.rs
+++ b/src/test/run-pass/associated-const-use-impl-of-same-trait.rs
@@ -10,13 +10,11 @@
 
 #![feature(associated_consts)]
 
-use std::marker::MarkerTrait;
-
 // The main purpose of this test is to ensure that different impls of the same
 // trait can refer to each other without setting off the static recursion check
 // (as long as there's no actual recursion).
 
-trait Foo: MarkerTrait {
+trait Foo {
     const BAR: u32;
 }
 
diff --git a/src/test/run-pass/associated-const.rs b/src/test/run-pass/associated-const.rs
index 9214467275f..d9065445009 100644
--- a/src/test/run-pass/associated-const.rs
+++ b/src/test/run-pass/associated-const.rs
@@ -10,9 +10,7 @@
 
 #![feature(associated_consts)]
 
-use std::marker::MarkerTrait;
-
-trait Foo: MarkerTrait {
+trait Foo {
     const ID: i32;
 }