about summary refs log tree commit diff
path: root/src/test/compile-fail/unresolved-import.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-57/+0
2017-07-25Point at path segment on module not foundEsteban Küber-3/+3
Point at the correct path segment on a import statement where a module doesn't exist. New output: ```rust error[E0432]: unresolved import `std::bar` --> <anon>:1:10 | 1 | use std::bar::{foo1, foo2}; | ^^^ Could not find `bar` in `std` ``` instead of: ```rust error[E0432]: unresolved import `std::bar::foo1` --> <anon>:1:16 | 1 | use std::bar::{foo1, foo2}; | ^^^^ Could not find `bar` in `std` error[E0432]: unresolved import `std::bar::foo2` --> <anon>:1:22 | 1 | use std::bar::{foo1, foo2}; | ^^^^ Could not find `bar` in `std` ```
2016-10-27Add semicolon to "Maybe a missing `extern crate foo`" messageRobin Stocker-1/+1
I had it a couple of times that I was missing the "extern crate" line after I introduced a new dependency. So I copied the text from the message and inserted it into the beginning of my code, only to find the compiler complaining that I was missing the semicolon. (I forgot to add it after the text that I had pasted.) There's a similar message which does include the semicolon, namely "help: you can import it into scope: `use foo::Bar;`". I think the two messages should be consistent, so this change adds it for "extern crate".
2016-09-05show `self` suggestion when items are in the blockAndy Russell-0/+11
2016-09-05resolve: Suggest `use self` when import resolvesAndy Russell-0/+9
Improves errors messages by replacing "Maybe a missing `extern crate`" messages with "Did you mean `self::...`" when the `self` import would succeed.
2016-08-22 Updated E0432 to new formatKnight-4/+8
2016-02-08Replace children and import_resolutions with a single NameResolution-valued map.Jeffrey Seyfried-2/+2
Refactor away resolve_name_in_module in resolve_imports.rs Rewrite and improve the core name resolution procedure in NameResolution::result and Module::resolve_name Refactor the duplicate checking code into NameResolution::try_define
2015-12-16Modify the Levenshtein-based suggestions to include importsRavi Shankar-6/+8
2015-08-08rustc: rename multiple imports in a listSean McArthur-1/+15
2014-08-14libsyntax: Accept `use foo as bar;` in lieu of `use bar as foo;`Patrick Walton-1/+1
The old syntax will be removed after a snapshot. RFC #47. Issue #16461.
2014-06-18rustc: reduce redundant resolve errors.Kevin Butler-4/+3
2014-06-17rustc: Add self/super hint for extern crate resolve errors.Kevin Butler-2/+2
2014-02-14extern mod => extern crateAlex Crichton-1/+1
This was previously implemented, and it just needed a snapshot to go through
2013-05-14Add span to some import resolution errorsCorey Richardson-3/+3
2013-05-14Add test for resolution errorsCorey Richardson-1/+7
2013-05-09compile-fail test for new unresolved import errorCorey Richardson-0/+12