Skip to content

Commit 381cd8f

Browse files
committed
---
yaml --- r: 3671 b: refs/heads/master c: 3bdbf74 h: refs/heads/master i: 3669: 06575a7 3667: 7d063a7 3663: 65b16e7 v: v3
1 parent 81b4753 commit 381cd8f

File tree

7 files changed

+178
-145
lines changed

7 files changed

+178
-145
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 007a736642ac88c0adf0d68e8dc6fcb22f0609c3
2+
refs/heads/master: 3bdbf74d4703771571fdee1733b7b3d919b5ede8

trunk/src/comp/middle/resolve.rs

+4-10
Original file line numberDiff line numberDiff line change
@@ -864,9 +864,8 @@ fn lookup_in_mod_strict(&env e, def m, &span sp, &ident name, namespace ns,
864864
}
865865
}
866866

867-
fn lookup_in_mod(&env e, def m, &span sp, &ident name, namespace ns,
868-
dir dr) ->
869-
option::t[def] {
867+
fn lookup_in_mod(&env e, &def m, &span sp, &ident name, namespace ns,
868+
dir dr) -> option::t[def] {
870869
auto defid = ast::def_id_of_def(m);
871870
if (defid._0 != ast::local_crate) {
872871
// examining a module in an external crate
@@ -966,14 +965,9 @@ fn lookup_glob_in_mod(&env e, @indexed_mod info, &span sp, &ident id,
966965
namespace wanted_ns, dir dr) -> option::t[def] {
967966
fn per_ns(&env e, @indexed_mod info, &span sp, &ident id, namespace ns,
968967
dir dr) -> option::t[def] {
969-
fn l_i_m_r(&env e, &def m, &span sp, &ident id, namespace ns, dir dr)
970-
-> option::t[def] {
971-
be lookup_in_mod(e, m, sp, id, ns, dr);
972-
}
973968
auto matches =
974-
vec::filter_map[def,
975-
def](bind l_i_m_r(e, _, sp, id, ns, dr),
976-
{ info.glob_imports });
969+
vec::filter_map(bind lookup_in_mod(e, _, sp, id, ns, dr),
970+
{ info.glob_imports });
977971
if (vec::len(matches) == 0u) {
978972
ret none[def];
979973
} else if (vec::len(matches) == 1u) {

0 commit comments

Comments
 (0)