Enable more tests.

This commit is contained in:
Rafael Ávila de Espíndola 2011-01-17 18:13:55 -05:00
parent a8be673a9c
commit 9f3caed8a0
3 changed files with 4 additions and 2 deletions

View File

@ -489,6 +489,8 @@ TEST_XFAILS_RUSTC := $(filter-out \
import2.rs \
import3.rs \
import4.rs \
import-loop.rs \
import-loop-2.rs \
while-type-error.rs \
), \
$(wildcard test/*/*.rs test/*/*.rc))

View File

@ -89,7 +89,7 @@ fn find_final_def(&env e, &span sp, vec[ident] idents) -> def_wrap {
case (ast.view_item_import(?new_idents, ?d)) {
if (pending.contains_key(d)) {
e.sess.span_err(sp,
"recursive import");
"cyclic import");
fail;
}
pending.insert(d, true);

View File

@ -1,4 +1,4 @@
// error-pattern: recursive import
// error-pattern: cyclic import
import zed.bar;
import bar.zed;