-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #57160 - petrochenkov:impice2, r=estebank
resolve: Fix an ICE in import validation Fixes ICE reported in the comment #56596 (comment)
- Loading branch information
Showing
4 changed files
with
45 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Nothing here |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// edition:2018 | ||
// compile-flags: --extern issue_56596 | ||
// aux-build:issue-56596.rs | ||
|
||
#![feature(uniform_paths)] | ||
|
||
mod m { | ||
pub mod issue_56596 {} | ||
} | ||
|
||
use m::*; | ||
use issue_56596; //~ ERROR `issue_56596` is ambiguous | ||
|
||
fn main() {} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
error[E0659]: `issue_56596` is ambiguous (name vs any other name during import resolution) | ||
--> $DIR/issue-56596.rs:12:5 | ||
| | ||
LL | use issue_56596; //~ ERROR `issue_56596` is ambiguous | ||
| ^^^^^^^^^^^ ambiguous name | ||
| | ||
= note: `issue_56596` could refer to an extern crate passed with `--extern` | ||
= help: use `::issue_56596` to refer to this extern crate unambiguously | ||
note: `issue_56596` could also refer to the module imported here | ||
--> $DIR/issue-56596.rs:11:5 | ||
| | ||
LL | use m::*; | ||
| ^^^^ | ||
= help: use `crate::issue_56596` to refer to this module unambiguously | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0659`. |