fn resolve_imports(&mut self) {
        let mut i = 0;
        let mut prev_unresolved_imports = 0;
        loop {
            debug!("(resolving imports) iteration {}, {} imports left",
                   i, self.unresolved_imports);

            let module_root = self.graph_root.get_module();
            self.resolve_imports_for_module_subtree(module_root);

            if self.unresolved_imports == 0 {
                debug!("(resolving imports) success");
                break;
            }

            if self.unresolved_imports == prev_unresolved_imports {
                self.report_unresolved_imports(module_root);
                break;
            }

            i += 1;
            prev_unresolved_imports = self.unresolved_imports;
        }
    }
/// Resolves all imports for the crate. This method performs the fixed-
/// point iteration.
Resolves all imports for the crate. This method performs the fixed
point iteration.
Resolves all imports for the crate . This method performs the fixed point iteration .
fn resolve_imports(&mut self) {
        let mut i = 0;
        let mut prev_unresolved_imports = 0;
        loop {
            debug!("(resolving imports) iteration {}, {} imports left",
                   i, self.unresolved_imports);
            let module_root = self.graph_root.get_module();
            self.resolve_imports_for_module_subtree(module_root);
            if self.unresolved_imports == 0 {
                debug!("(resolving imports) success");
                break;
            }
            if self.unresolved_imports == prev_unresolved_imports {
                self.report_unresolved_imports(module_root);
                break;
            }
            i += 1;
            prev_unresolved_imports = self.unresolved_imports;
        }
    }
fn resolve_imports ( & mut self ) { let mut i = 0 ; let mut prev_unresolved_imports = 0 ; loop { debug ! ( " " i self unresolved_imports ) ; let module_root = self . graph_root . get_module ( ) ; self . resolve_imports_for_module_subtree ( module_root ) ; if self . unresolved_imports == 0 { debug ! ( " " ) ; break ; } if self . unresolved_imports == prev_unresolved_imports { self . report_unresolved_imports ( module_root ) ; break ; } i += 1 ; prev_unresolved_imports = self . unresolved_imports ; } }
Resolves all imports for the crate.
Resolves all imports for the crate .
&mut self
&mut self