Skip to content

Commit 35f5e18

Browse files
committed
Fix fallout in tests
1 parent 20ee53c commit 35f5e18

22 files changed

+7
-31
lines changed

src/test/compile-fail-fulldeps/macro-crate-doesnt-resolve.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ extern crate macro_crate_test;
1616
fn main() {
1717
macro_crate_test::foo();
1818
//~^ ERROR failed to resolve. Use of undeclared type or module `macro_crate_test`
19-
//~^^ ERROR unresolved name `macro_crate_test::foo`
2019
}

src/test/compile-fail/bad-module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern: unresolved name
11+
// error-pattern: failed to resolve. Use of undeclared type or module `thing`
1212

1313
fn main() { let foo = thing::len(Vec::new()); }

src/test/compile-fail/bad-type-env-capture.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010

1111
fn foo<T>() {
1212
fn bar(b: T) { } //~ ERROR can't use type parameters from outer
13-
//~^ ERROR type name `T` is undefined or not in scope
1413
}
1514
fn main() { }

src/test/compile-fail/export-fully-qualified.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern: unresolved name
11+
// error-pattern: failed to resolve. Use of undeclared type or module `foo`
1212

1313
// In this test baz isn't resolved when called as foo.baz even though
1414
// it's called from inside foo. This is somewhat surprising and may

src/test/compile-fail/export2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern: unresolved name
11+
// error-pattern: failed to resolve. Use of undeclared type or module `bar`
1212

1313
mod foo {
1414
pub fn x() { bar::x(); }

src/test/compile-fail/inner-static-type-parameter.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ enum Bar<T> { What } //~ ERROR parameter `T` is never used
1515
fn foo<T>() {
1616
static a: Bar<T> = Bar::What;
1717
//~^ ERROR cannot use an outer type parameter in this context
18-
//~| ERROR type name `T` is undefined or not in scope
1918
}
2019

2120
fn main() {

src/test/compile-fail/issue-12796.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ trait Trait {
1212
fn outer(&self) {
1313
fn inner(_: &Self) {
1414
//~^ ERROR can't use type parameters from outer function
15-
//~^^ ERROR use of `Self` outside of an impl or trait
1615
}
1716
}
1817
}

src/test/compile-fail/issue-3021-b.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ fn siphash(k0 : u64) {
1717
impl siphash {
1818
pub fn reset(&mut self) {
1919
self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR can't capture dynamic environment
20-
//~^ ERROR unresolved name `k0`
2120
}
2221
}
2322
}

src/test/compile-fail/issue-3021-c.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ fn siphash<T>() {
1313
trait t {
1414
fn g(&self, x: T) -> T; //~ ERROR can't use type parameters from outer function; try using
1515
//~^ ERROR can't use type parameters from outer function; try using
16-
//~^^ ERROR type name `T` is undefined or not in scope
17-
//~^^^ ERROR type name `T` is undefined or not in scope
1816
}
1917
}
2018

src/test/compile-fail/issue-3021-d.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ fn siphash(k0 : u64, k1 : u64) {
2929
impl siphash for SipState {
3030
fn reset(&self) {
3131
self.v0 = k0 ^ 0x736f6d6570736575; //~ ERROR can't capture dynamic environment
32-
//~^ ERROR unresolved name `k0`
3332
self.v1 = k1 ^ 0x646f72616e646f6d; //~ ERROR can't capture dynamic environment
34-
//~^ ERROR unresolved name `k1`
3533
}
3634
fn result(&self) -> u64 { return mk_result(self); }
3735
}

0 commit comments

Comments
 (0)