Add missing ret statements to check_mod
Un-XFAIL compile-fail export tests
This commit is contained in:
parent
ce9468761c
commit
bd34770a92
7 changed files with 4 additions and 12 deletions
|
@ -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 (_) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue