auto merge of #6400 : cmr/rust/remove_useless_import_error, r=thestinger

Every unresolved import is reported. An additional error message isn't useful
and obscures (imo) the real errors: I need to take it into account when
looking at the error count.
This commit is contained in:
bors 2013-05-12 20:22:40 -07:00
commit 8291e36f18
2 changed files with 1 additions and 3 deletions

View file

@ -1909,7 +1909,6 @@ pub impl Resolver {
}
if self.unresolved_imports == prev_unresolved_imports {
self.session.err(~"failed to resolve imports");
self.report_unresolved_imports(module_root);
break;
}

View file

@ -8,8 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// error-pattern:failed to resolve imports
use x = m::f;
use x = m::f; //~ ERROR failed to resolve import
mod m {
}