Be less specific in 'unresolved import' error patterns

To make sure different test set-ups (check-fast) don't cause the
tests to fail.
This commit is contained in:
Marijn Haverbeke 2011-12-02 17:20:03 +01:00
parent 30d923d14b
commit 46e5e2f685
6 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
// error-pattern: unresolved name: a
// error-pattern: unresolved name: m1::a
mod m1 { }

View File

@ -1,4 +1,4 @@
// error-pattern: unresolved name: a
// error-pattern: unresolved name: m1::a
mod m1 {
mod a { }

View File

@ -1,4 +1,4 @@
// error-pattern: unresolved import: vec
// error-pattern: unresolved import
import vec;
fn main() { let foo = vec::len([]); }

View File

@ -1,4 +1,4 @@
// error-pattern:unresolved import: eggs
// error-pattern:unresolved import
import spam::{ham, eggs};
mod spam {

View File

@ -1,4 +1,4 @@
// error-pattern: unresolved import: baz
// error-pattern: unresolved import
import zed::bar;
import zed::baz;
mod zed {

View File

@ -1,4 +1,4 @@
// error-pattern:unresolved import: foo
// error-pattern:unresolved import
mod m1 {
fn foo() { log "foo"; }