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:
commit
8291e36f18
2 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue