Fix bug: globbed imports were importing everything visible from the other

module, not just everything exported.
This commit is contained in:
Paul Stansifer 2011-06-22 15:41:39 -07:00
parent adc18bb24a
commit b4c3b83f26
7 changed files with 38 additions and 11 deletions

View file

@ -940,9 +940,9 @@ fn lookup_in_local_mod(&env e, node_id node_id, &span sp, &ident id,
}
}
}
// not local or explicitly imported; try globs:
ret lookup_glob_in_mod(e, info, sp, id, ns, dr);
// not local or explicitly imported; try globs:
ret lookup_glob_in_mod(e, info, sp, id, ns, outside);
}
fn lookup_glob_in_mod(&env e, @indexed_mod info, &span sp, &ident id,