]> git.lizzy.rs Git - rust.git/commitdiff
Add missings NOTE and HELP annotations to tests
authorFlorian Hahn <flo@fhahn.com>
Fri, 15 Jan 2016 10:57:57 +0000 (11:57 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 29 Jan 2016 23:27:58 +0000 (00:27 +0100)
src/test/compile-fail/changing-crates.rs
src/test/compile-fail/default_ty_param_conflict_cross_crate.rs
src/test/compile-fail/lifetime-inference-give-expl-lifetime-param.rs
src/test/compile-fail/privacy1.rs
src/test/compile-fail/svh-change-lit.rs
src/test/compile-fail/svh-change-significant-cfg.rs
src/test/compile-fail/svh-change-trait-bound.rs
src/test/compile-fail/svh-change-type-arg.rs
src/test/compile-fail/svh-change-type-ret.rs
src/test/compile-fail/svh-change-type-static.rs
src/test/compile-fail/svh-use-trait.rs

index ae3ef7606671058d4cf9e314de5b51dbeee861ef..798f4ef74b85c5621bad9f306ba29bd2c15346a9 100644 (file)
@@ -15,6 +15,8 @@
 
 extern crate a;
 extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
-//~^ NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: crate `a` path #1:
+//~| NOTE: crate `b` path #1:
 
 fn main() {}
index 4d60724372ada45b2856c09e5d8431408bd193eb..fc2c49d65affec7d5c67006a2848e501206e5ce2 100644 (file)
@@ -26,4 +26,5 @@ fn main() {
     meh(foo);
     //~^ ERROR: mismatched types:
     //~| NOTE: conflicting type parameter defaults `bool` and `char`
+    //~| NOTE:  ...that was applied to an unconstrained type variable here
 }
index a85776a938b44f189ab62db91ba6c9980175899d..e32ed1c42a09088e421b6c12ea59feec6a27ad8a 100644 (file)
@@ -49,6 +49,7 @@ struct Baz<'x> {
 
 impl<'a> Baz<'a> {
     fn baz2<'b>(&self, x: &isize) -> (&'b isize, &'b isize) {
+         //~^ HELP: parameter as shown: fn baz2<'b>(&self, x: &'b isize) -> (&'a isize, &'a isize)
         // The lifetime that gets assigned to `x` seems somewhat random.
         // I have disabled this test for the time being. --pcwalton
         (self.bar, x) //~ ERROR: cannot infer
index 593068c2aea9dcdc2e0b95e88d66fdc8b0036a74..495cdc3fe62e287062ee83fb588bc3e16439fc08 100644 (file)
@@ -129,12 +129,17 @@ fn test() {
         ::bar::baz::foo(); //~ ERROR: function `foo` is inaccessible
                            //~^ NOTE: module `baz` is private
         ::bar::baz::bar(); //~ ERROR: function `bar` is inaccessible
+                           //~^ NOTE: module `baz` is private
     }
 
     fn test2() {
         use bar::baz::{foo, bar};
         //~^ ERROR: function `foo` is inaccessible
-        //~^^ ERROR: function `bar` is inaccessible
+        //~| NOTE: module `baz` is private
+        //~| ERROR: function `bar` is inaccessible
+        //~| NOTE: module `baz` is private
+
+
         foo();
         bar();
     }
index c839ade75cf29875bc0b835b10477c0baeb22129..24627c4ef0f4dfb7f530e5a5261f894d628ea5a2 100644 (file)
@@ -15,7 +15,9 @@
 
 extern crate a;
 extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
-//~^ NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: crate `a` path #1:
+//~| NOTE: crate `b` path #1:
 
 fn main() {
     b::foo()
index df0adf36ce2e6f4fb72fe61aee610ceac7c2a8e0..fd3065ccb63f4939a06dcaf3c8b6e24af29b533c 100644 (file)
@@ -15,7 +15,9 @@
 
 extern crate a;
 extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
-//~^ NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: crate `a` path #1:
+//~| NOTE: crate `b` path #1:
 
 fn main() {
     b::foo()
index 4774384fecd496558f6b282dfb8c8c6715075317..aa8ec911a3ba00435ba95dc40b98b0e06741050c 100644 (file)
@@ -15,7 +15,9 @@
 
 extern crate a;
 extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
-//~^ NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: crate `a` path #1:
+//~| NOTE: crate `b` path #1:
 
 fn main() {
     b::foo()
index 51d3fd0a73a129401789e3dafded5ebeaca7dd34..953813a842222b20544f73e69c3b055babb43e07 100644 (file)
@@ -15,7 +15,9 @@
 
 extern crate a;
 extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
-//~^ NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: crate `a` path #1:
+//~| NOTE: crate `b` path #1:
 
 fn main() {
     b::foo()
index 609e0f3689e5dfe6e2738771571b8241fd86149b..114d82d68e6e4cdbc89ff5156bc1e3e2f6beeed6 100644 (file)
@@ -15,7 +15,9 @@
 
 extern crate a;
 extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
-//~^ NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: crate `a` path #1:
+//~| NOTE: crate `b` path #1:
 
 fn main() {
     b::foo()
index c42714609b6f8908f07d258d5e4b0b6b6e777805..80a9119095e5998c1cc445bb5719a59fb02879ee 100644 (file)
@@ -15,7 +15,9 @@
 
 extern crate a;
 extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on
-//~^ NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: crate `a` path #1:
+//~| NOTE: crate `b` path #1:
 
 fn main() {
     b::foo()
index 7fdbf35fc6d59c1fffda04c3424974ee4d05e55d..c6c5b10bda31a46d358ccda4962a4fbf31427287 100644 (file)
@@ -20,7 +20,9 @@
 
 extern crate uta;
 extern crate utb; //~ ERROR: found possibly newer version of crate `uta` which `utb` depends
-//~^ NOTE: perhaps this crate needs to be recompiled
+//~| NOTE: perhaps this crate needs to be recompiled?
+//~| NOTE: crate `uta` path #1:
+//~| NOTE: crate `utb` path #1:
 
 fn main() {
     utb::foo()