forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve: Desugar empty import groups into synthetic dummy imports
so that they are correctly resolved on 2018 edition
- Loading branch information
1 parent
540d837
commit f7e7b3a
Showing
7 changed files
with
51 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
error[E0578]: cannot find module or enum `foo` in the crate root | ||
error[E0432]: unresolved import `foo` | ||
--> $DIR/issue-28388-1.rs:13:5 | ||
| | ||
LL | use foo::{}; //~ ERROR cannot find module or enum `foo` in the crate root | ||
| ^^^ not found in the crate root | ||
LL | use foo::{}; //~ ERROR unresolved import `foo` | ||
| ^^^^^^^ no `foo` in the root | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0578`. | ||
For more information about this error, try `rustc --explain E0432`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
error[E0577]: expected module or enum, found struct `S` | ||
--> $DIR/resolve-bad-import-prefix.rs:20:5 | ||
| | ||
LL | use S::{}; //~ ERROR expected module or enum, found struct `S` | ||
| -^^^^ | ||
| | | ||
| did you mean `E`? | ||
|
||
error[E0577]: expected module or enum, found trait `Tr` | ||
--> $DIR/resolve-bad-import-prefix.rs:21:5 | ||
| | ||
LL | use Tr::{}; //~ ERROR expected module or enum, found trait `Tr` | ||
| ^^^^^^ not a module or enum | ||
|
||
error[E0578]: cannot find module or enum `Nonexistent` in the crate root | ||
error[E0432]: unresolved import `Nonexistent` | ||
--> $DIR/resolve-bad-import-prefix.rs:22:5 | ||
| | ||
LL | use Nonexistent::{}; //~ ERROR cannot find module or enum `Nonexistent` in the crate root | ||
| ^^^^^^^^^^^ not found in the crate root | ||
LL | use Nonexistent::{}; //~ ERROR unresolved import `Nonexistent` | ||
| ^^^^^^^^^^^^^^^ no `Nonexistent` in the root | ||
|
||
error: aborting due to 3 previous errors | ||
error: aborting due to previous error | ||
|
||
Some errors occurred: E0577, E0578. | ||
For more information about an error, try `rustc --explain E0577`. | ||
For more information about this error, try `rustc --explain E0432`. |