diff options
| author | bors <bors@rust-lang.org> | 2013-05-10 00:52:52 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-10 00:52:52 -0700 |
| commit | f04eb37c7ea19bbd2cff12d15816873e0a46fc86 (patch) | |
| tree | 3ea97645b871233c86ff8603e71c096a13d8a6af /src/libsyntax | |
| parent | 3e106cf2c2556be6bbcd9a93e5ef2a73b98f0e7a (diff) | |
| parent | 9cbab89076c48bffd966303a1cf2856df2b00dcc (diff) | |
| download | rust-f04eb37c7ea19bbd2cff12d15816873e0a46fc86.tar.gz rust-f04eb37c7ea19bbd2cff12d15816873e0a46fc86.zip | |
auto merge of #6347 : cmr/rust/unknown_module_resolve_error, r=catamorphism
This improves error reporting for the following class of imports:
```rust
use foo::bar;
```
Where foo, the topmost module, is unresolved. It now results in:
```text
/tmp/foo.rs:1:4: 1:7 error: unresolved import. perhapsyou forgot an 'extern mod foo'?
/tmp/foo.rs:1 use foo::bar;
^~~
/tmp/foo.rs:1:4: 1:12 error: failed to resolve import: foo::bar
/tmp/foo.rs:1 use foo::bar;
^~~~~~~~
error: failed to resolve imports
error: aborting due to 3 previous errors
```
This is the first of a series of changes I plan on making to unresolved name error messages.
Diffstat (limited to 'src/libsyntax')
0 files changed, 0 insertions, 0 deletions
