auto merge of #6443 : cmr/rust/resolution, r=bstrie

When trying to import nonexistent items from existing modules, specify that
that is what happened, rather than just reporting "unresolved name".

Ideally the error would be reported on the span of the import... but I do not see a way to get a span there. Help appreciated 😄
This commit is contained in:
bors 2013-05-13 09:28:46 -07:00
commit 935b7ba516
2 changed files with 21 additions and 6 deletions

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use baz::zed::bar; //~ ERROR unresolved name
use baz::zed::bar; //~ ERROR unresolved import
//~^ ERROR failed to resolve import
mod baz {}