Fix bug: globbed imports were importing everything visible from the other
module, not just everything exported.
This commit is contained in:
parent
adc18bb24a
commit
b4c3b83f26
7 changed files with 38 additions and 11 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue