We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d81c80 commit 74625e1Copy full SHA for 74625e1
src/librustc/middle/resolve.rs
@@ -2593,7 +2593,12 @@ pub impl Resolver {
2593
let start_index;
2594
match module_prefix_result {
2595
Failed => {
2596
- self.session.span_err(span, ~"unresolved name");
+ let mpath = self.idents_to_str(module_path);
2597
+ let idx = str::rfind(self.idents_to_str(module_path), |c| { c == ':' }).unwrap();
2598
+ self.session.span_err(span, fmt!("unresolved import: could not find `%s` in `%s`",
2599
+ str::substr(mpath, idx, mpath.len() - idx),
2600
+ // idx - 1 to account for the extra semicolon
2601
+ str::substr(mpath, 0, idx - 1)));
2602
return Failed;
2603
}
2604
Indeterminate => {
0 commit comments