Add missing ret statements to check_mod
Un-XFAIL compile-fail export tests
This commit is contained in:
parent
ce9468761c
commit
bd34770a92
@ -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 (_) {
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,5 @@
|
||||
// xfail-boot
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// error-pattern: unresolved name
|
||||
|
||||
import m.unexported;
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,5 @@
|
||||
// xfail-boot
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// error-pattern: unresolved name
|
||||
|
||||
mod foo {
|
||||
|
@ -1,7 +1,5 @@
|
||||
// xfail-boot
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// error-pattern: unresolved name
|
||||
mod foo {
|
||||
export x;
|
||||
|
@ -1,7 +1,5 @@
|
||||
// xfail-boot
|
||||
// xfail-stage0
|
||||
// xfail-stage1
|
||||
// xfail-stage2
|
||||
// error-pattern: unresolved name
|
||||
|
||||
mod foo {
|
||||
|
Loading…
x
Reference in New Issue
Block a user