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:
@@ -353,14 +353,19 @@ fn map_crate(e: @env, c: @ast::crate) {
|
|||||||
|
|
||||||
fn resolve_imports(e: env) {
|
fn resolve_imports(e: env) {
|
||||||
e.used_imports.track = true;
|
e.used_imports.track = true;
|
||||||
|
loop {
|
||||||
|
let mut done = true;
|
||||||
e.imports.values {|v|
|
e.imports.values {|v|
|
||||||
alt v {
|
alt check v {
|
||||||
todo(node_id, name, path, span, scopes) {
|
todo(node_id, name, path, span, scopes) {
|
||||||
resolve_import(e, local_def(node_id), name, *path, span, scopes);
|
done = false;
|
||||||
|
resolve_import(e, local_def(node_id), name, *path, span,
|
||||||
|
scopes);
|
||||||
}
|
}
|
||||||
resolved(_, _, _, _, _, _) | is_glob(_, _, _) { }
|
resolved(_, _, _, _, _, _) | is_glob(_, _, _) { }
|
||||||
_ { e.sess.bug("shouldn't see a resolving in resolve_imports"); }
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if done { break; }
|
||||||
};
|
};
|
||||||
e.used_imports.track = false;
|
e.used_imports.track = false;
|
||||||
e.sess.abort_if_errors();
|
e.sess.abort_if_errors();
|
||||||
|
|||||||
Reference in New Issue
Block a user