Add missing ret statements to check_mod

Un-XFAIL compile-fail export tests
This commit is contained in:
Brian Anderson 2011-05-04 19:29:27 -04:00
parent ce9468761c
commit bd34770a92
7 changed files with 4 additions and 12 deletions

View File

@ -382,6 +382,8 @@ fn lookup_name_wrapped(&env e, ast.ident i, namespace ns, direction dir)
case (ast.mie_item(?item)) {
if (visible(i, m, dir)) {
ret some(found_def_item(item, ns));
} else {
ret none[def_wrap];
}
}
case (ast.mie_tag_variant(?item, ?variant_idx)) {
@ -391,6 +393,8 @@ fn lookup_name_wrapped(&env e, ast.ident i, namespace ns, direction dir)
auto vid = variants.(variant_idx).node.id;
auto t = ast.def_variant(tid, vid);
ret some[def_wrap](def_wrap_other(t));
} else {
ret none[def_wrap];
}
}
case (_) {

View File

@ -1,7 +1,5 @@
// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: unresolved name
// In this test baz isn't resolved when called as foo.baz even though

View File

@ -1,7 +1,5 @@
// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: unresolved name
import m.unexported;

View File

@ -1,7 +1,5 @@
// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: unresolved name
// Tag variants are not exported with their tags. This allows for a

View File

@ -1,7 +1,5 @@
// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: unresolved name
mod foo {

View File

@ -1,7 +1,5 @@
// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: unresolved name
mod foo {
export x;

View File

@ -1,7 +1,5 @@
// xfail-boot
// xfail-stage0
// xfail-stage1
// xfail-stage2
// error-pattern: unresolved name
mod foo {