about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authortopecongiro <seuchida@gmail.com>2017-03-22 16:17:15 +0900
committertopecongiro <seuchida@gmail.com>2017-03-29 13:27:00 +0900
commit11ce5b72a21718f6d49b5f40b71ea0f53b8ea4bc (patch)
tree35ca395e8877120b0807674040153c90687c7379 /src/test
parent10b1739588f8b7ecde7761fdcb08bd79ac77b119 (diff)
downloadrust-11ce5b72a21718f6d49b5f40b71ea0f53b8ea4bc.tar.gz
rust-11ce5b72a21718f6d49b5f40b71ea0f53b8ea4bc.zip
Make overlapping_inherent_impls lint a hard error
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/coherence-overlapping-inherent-impl-trait.rs2
-rw-r--r--src/test/compile-fail/inherent-overlap.rs3
2 files changed, 0 insertions, 5 deletions
diff --git a/src/test/compile-fail/coherence-overlapping-inherent-impl-trait.rs b/src/test/compile-fail/coherence-overlapping-inherent-impl-trait.rs
index 08e8605e917..158d3606104 100644
--- a/src/test/compile-fail/coherence-overlapping-inherent-impl-trait.rs
+++ b/src/test/compile-fail/coherence-overlapping-inherent-impl-trait.rs
@@ -9,10 +9,8 @@
 // except according to those terms.
 
 #![allow(dead_code)]
-#![deny(overlapping_inherent_impls)]
 
 trait C {}
 impl C { fn f() {} } //~ ERROR duplicate definitions with name `f`
-//~^ WARN: this was previously accepted
 impl C { fn f() {} }
 fn main() { }
diff --git a/src/test/compile-fail/inherent-overlap.rs b/src/test/compile-fail/inherent-overlap.rs
index 00d41244639..18e77ddfd2c 100644
--- a/src/test/compile-fail/inherent-overlap.rs
+++ b/src/test/compile-fail/inherent-overlap.rs
@@ -17,7 +17,6 @@ struct Foo;
 
 impl Foo {
     fn id() {} //~ ERROR duplicate definitions
-    //~^ WARN previously accepted
 }
 
 impl Foo {
@@ -28,7 +27,6 @@ struct Bar<T>(T);
 
 impl<T> Bar<T> {
     fn bar(&self) {} //~ ERROR duplicate definitions
-    //~^ WARN previously accepted
 }
 
 impl Bar<u32> {
@@ -39,7 +37,6 @@ struct Baz<T>(T);
 
 impl<T: Copy> Baz<T> {
     fn baz(&self) {} //~ ERROR duplicate definitions
-    //~^ WARN previously accepted
 }
 
 impl<T> Baz<Vec<T>> {