Add missings NOTE and HELP annotations to tests

This commit is contained in:
Florian Hahn 2016-01-15 11:57:57 +01:00
parent 36656f812d
commit efe56c8833
11 changed files with 32 additions and 9 deletions

View File

@ -15,6 +15,8 @@
extern crate a; extern crate a;
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on 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() {} fn main() {}

View File

@ -26,4 +26,5 @@ fn main() {
meh(foo); meh(foo);
//~^ ERROR: mismatched types: //~^ ERROR: mismatched types:
//~| NOTE: conflicting type parameter defaults `bool` and `char` //~| NOTE: conflicting type parameter defaults `bool` and `char`
//~| NOTE: ...that was applied to an unconstrained type variable here
} }

View File

@ -49,6 +49,7 @@ struct Baz<'x> {
impl<'a> Baz<'a> { impl<'a> Baz<'a> {
fn baz2<'b>(&self, x: &isize) -> (&'b isize, &'b isize) { 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. // The lifetime that gets assigned to `x` seems somewhat random.
// I have disabled this test for the time being. --pcwalton // I have disabled this test for the time being. --pcwalton
(self.bar, x) //~ ERROR: cannot infer (self.bar, x) //~ ERROR: cannot infer

View File

@ -129,12 +129,17 @@ mod foo {
::bar::baz::foo(); //~ ERROR: function `foo` is inaccessible ::bar::baz::foo(); //~ ERROR: function `foo` is inaccessible
//~^ NOTE: module `baz` is private //~^ NOTE: module `baz` is private
::bar::baz::bar(); //~ ERROR: function `bar` is inaccessible ::bar::baz::bar(); //~ ERROR: function `bar` is inaccessible
//~^ NOTE: module `baz` is private
} }
fn test2() { fn test2() {
use bar::baz::{foo, bar}; use bar::baz::{foo, bar};
//~^ ERROR: function `foo` is inaccessible //~^ 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(); foo();
bar(); bar();
} }

View File

@ -15,7 +15,9 @@
extern crate a; extern crate a;
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on 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() { fn main() {
b::foo() b::foo()

View File

@ -15,7 +15,9 @@
extern crate a; extern crate a;
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on 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() { fn main() {
b::foo() b::foo()

View File

@ -15,7 +15,9 @@
extern crate a; extern crate a;
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on 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() { fn main() {
b::foo() b::foo()

View File

@ -15,7 +15,9 @@
extern crate a; extern crate a;
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on 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() { fn main() {
b::foo() b::foo()

View File

@ -15,7 +15,9 @@
extern crate a; extern crate a;
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on 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() { fn main() {
b::foo() b::foo()

View File

@ -15,7 +15,9 @@
extern crate a; extern crate a;
extern crate b; //~ ERROR: found possibly newer version of crate `a` which `b` depends on 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() { fn main() {
b::foo() b::foo()

View File

@ -20,7 +20,9 @@
extern crate uta; extern crate uta;
extern crate utb; //~ ERROR: found possibly newer version of crate `uta` which `utb` depends 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() { fn main() {
utb::foo() utb::foo()