mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
Revert resolve kludge that was working around #2049
This commit is contained in:
parent
3e7a514521
commit
5cfbbbc9ed
@ -353,19 +353,14 @@ fn map_crate(e: @env, c: @ast::crate) {
|
||||
|
||||
fn resolve_imports(e: env) {
|
||||
e.used_imports.track = true;
|
||||
loop {
|
||||
let mut done = true;
|
||||
e.imports.items {|id, v|
|
||||
alt check v {
|
||||
todo(name, path, span, scopes) {
|
||||
done = false;
|
||||
resolve_import(e, id, name, *path, span, scopes);
|
||||
}
|
||||
resolved(_, _, _, _, _, _) | is_glob(_, _, _) { }
|
||||
}
|
||||
e.imports.items {|id, v|
|
||||
alt check v {
|
||||
todo(name, path, span, scopes) {
|
||||
resolve_import(e, id, name, *path, span, scopes);
|
||||
}
|
||||
resolved(_, _, _, _, _, _) | is_glob(_, _, _) { }
|
||||
}
|
||||
if done { break; }
|
||||
};
|
||||
}
|
||||
e.used_imports.track = false;
|
||||
e.sess.abort_if_errors();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user