-
Couldn't load subscription status.
- Fork 13.9k
fix(resolve): update shadowed_glob more precision #112495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,17 +4,19 @@ error[E0659]: `V` is ambiguous | |
| LL | use V; | ||
| | ^ ambiguous name | ||
| | | ||
| = note: ambiguous because of multiple potential import sources | ||
| = note: ambiguous because of multiple glob imports of a name in the same module | ||
|
||
| note: `V` could refer to the variant imported here | ||
| --> $DIR/issue-105069.rs:1:5 | ||
| | | ||
| LL | use self::A::*; | ||
| | ^^^^^^^^^^ | ||
| = help: consider adding an explicit import of `V` to disambiguate | ||
| note: `V` could also refer to the variant imported here | ||
| --> $DIR/issue-105069.rs:3:5 | ||
| | | ||
| LL | use self::B::*; | ||
| | ^^^^^^^^^^ | ||
| = help: consider adding an explicit import of `V` to disambiguate | ||
|
|
||
| error: aborting due to previous error | ||
|
|
||
|
|
||
| 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() { } |
| 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`. |
Uh oh!
There was an error while loading. Please reload this page.