Skip to content

Commit 8291e36

Browse files
committed
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.
2 parents 8d1a09c + e605536 commit 8291e36

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/librustc/middle/resolve.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,6 @@ pub impl Resolver {
19091909
}
19101910

19111911
if self.unresolved_imports == prev_unresolved_imports {
1912-
self.session.err(~"failed to resolve imports");
19131912
self.report_unresolved_imports(module_root);
19141913
break;
19151914
}

src/test/compile-fail/issue-2937.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:failed to resolve imports
12-
use x = m::f;
11+
use x = m::f; //~ ERROR failed to resolve import
1312

1413
mod m {
1514
}

0 commit comments

Comments
 (0)