-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(resolve): update
shadowed_glob
more precision
- Loading branch information
Showing
4 changed files
with
55 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use foo::*; | ||
|
||
mod foo { | ||
pub mod bar { | ||
pub mod bar { | ||
pub mod bar {} | ||
} | ||
} | ||
} | ||
|
||
use bar::bar; //~ ERROR `bar` is ambiguous | ||
use bar::*; | ||
|
||
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,23 @@ | ||
error[E0659]: `bar` is ambiguous | ||
--> $DIR/issue-109153.rs:11:5 | ||
| | ||
LL | use bar::bar; | ||
| ^^^ ambiguous name | ||
| | ||
= note: ambiguous because of multiple glob imports of a name in the same module | ||
note: `bar` could refer to the module imported here | ||
--> $DIR/issue-109153.rs:1:5 | ||
| | ||
LL | use foo::*; | ||
| ^^^^^^ | ||
= help: consider adding an explicit import of `bar` to disambiguate | ||
note: `bar` could also refer to the module imported here | ||
--> $DIR/issue-109153.rs:12:5 | ||
| | ||
LL | use bar::*; | ||
| ^^^^^^ | ||
= help: consider adding an explicit import of `bar` to disambiguate | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0659`. |