Kludge in resolve to be able to land builtins
Something strange is happening to hash maps. I'm still investigating but want to get my snapshot built in the meantime. (Problem only happened on OS X.)
This commit is contained in:
parent
cdb93d70a1
commit
6374ffc5f3
@ -353,14 +353,19 @@ fn map_crate(e: @env, c: @ast::crate) {
|
||||
|
||||
fn resolve_imports(e: env) {
|
||||
e.used_imports.track = true;
|
||||
e.imports.values {|v|
|
||||
alt v {
|
||||
todo(node_id, name, path, span, scopes) {
|
||||
resolve_import(e, local_def(node_id), name, *path, span, scopes);
|
||||
}
|
||||
resolved(_, _, _, _, _, _) | is_glob(_, _, _) { }
|
||||
_ { e.sess.bug("shouldn't see a resolving in resolve_imports"); }
|
||||
loop {
|
||||
let mut done = true;
|
||||
e.imports.values {|v|
|
||||
alt check v {
|
||||
todo(node_id, name, path, span, scopes) {
|
||||
done = false;
|
||||
resolve_import(e, local_def(node_id), name, *path, span,
|
||||
scopes);
|
||||
}
|
||||
resolved(_, _, _, _, _, _) | is_glob(_, _, _) { }
|
||||
}
|
||||
}
|
||||
if done { break; }
|
||||
};
|
||||
e.used_imports.track = false;
|
||||
e.sess.abort_if_errors();
|
||||
|
Loading…
x
Reference in New Issue
Block a user