1
Fork 0

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)) { case (ast.mie_item(?item)) {
if (visible(i, m, dir)) { if (visible(i, m, dir)) {
ret some(found_def_item(item, ns)); ret some(found_def_item(item, ns));
} else {
ret none[def_wrap];
} }
} }
case (ast.mie_tag_variant(?item, ?variant_idx)) { 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 vid = variants.(variant_idx).node.id;
auto t = ast.def_variant(tid, vid); auto t = ast.def_variant(tid, vid);
ret some[def_wrap](def_wrap_other(t)); ret some[def_wrap](def_wrap_other(t));
} else {
ret none[def_wrap];
} }
} }
case (_) { case (_) {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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