Skip to content

Commit

Permalink
Don't try to look up crate modules in ext_map in resolve
Browse files Browse the repository at this point in the history
Closes #1305
  • Loading branch information
marijnh committed Dec 15, 2011
1 parent dde5860 commit 2cd3d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comp/middle/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ fn unresolved_err(e: env, cx: ctxt, sp: span, name: ident, kind: str) {
let did = def_id_of_def(def);
if did.crate == ast::local_crate {
path = e.mod_map.get(did.node).path + path;
} else {
} else if did.node != -1 {
let paths = e.ext_map.get(did);
if vec::len(paths) > 0u {
path = str::connect(paths, "::") + "::" + path;
Expand Down

0 comments on commit 2cd3d1f

Please sign in to comment.