-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Wildcard imports do not seem to propagate as expected for tuple-like struct types having at least one non-pub field #53140
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Very interesting. It's interesting that the error happens only if mod mod1 {
pub struct Item(usize);
use Item as Something; // ERROR
}
use mod1::*;
mod mod2 {
use Item; // OK
} Perhaps bisection can find what commit caused the regression? |
Applying |
Visiting for triage. Marking as P-high as this is a regression. @petrochenkov has already assigned themselves. |
…olution This allows import resolution to progress in cases like rust-lang#53140
Fixed in #53509 |
…olution This allows import resolution to progress in cases like #53140
"Wildcard imports do not seem to propagate as expected for tuple-like struct types having at least one non-pub field" <rust-lang/rust#53140>
In the following code,
::mod1::Item
is expected to be imported as::mod1::mod2::Item
via the following route:::mod1::Item
(the original definition)::Item
(byuse self::mod1::*
in the crate root)::mod1::mod2::Item
(byuse Item
in::mod1::mod2
)However, an “unresolved import” error is reported for the last
use
as shown below:(Playground)
Errors:
This issue can be reproduced in:
But not in:
The text was updated successfully, but these errors were encountered: