-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for future-incompatibility lint ambiguous_import_visibilities #153961
Copy link
Copy link
Open
Labels
A-visibilityArea: Visibility / privacyArea: Visibility / privacyC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCL-ambiguous_import_visibilitiesLint: ambiguous_import_visibilitiesLint: ambiguous_import_visibilitiesT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-visibilityArea: Visibility / privacyArea: Visibility / privacyC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCL-ambiguous_import_visibilitiesLint: ambiguous_import_visibilitiesLint: ambiguous_import_visibilitiesT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is the tracking issue for the
ambiguous_import_visibilitiesfuture-compatibility warning and other related errors. The goal of this page is to describe why this change was made and how you can fix code that is affected by it. It also provides a place to ask questions or register a complaint if you feel the change should not be made. For more information on the policy around future-compatibility warnings, see our breaking change policy guidelines.What is the warning for?
The
ambiguous_import_visibilitieslint detects imports that should report ambiguity errors due to ambiguous import visibilities, but previously didn't do that due to rustc bugs.Why was this change made?
Explain why this change was made. If there is additional context, like an MCP, link it here.
Example
Previous versions of rustc compiled it successfully because they fetched the glob import's visibility for
pub use S as Zimport, and ignored the privateuse m::Simport that appeared later.Recommendations
Try disambiguating with explicit (non-glob) imports.
When will this warning become a hard error?
If known, describe the future plans. For example, how long you anticipate this being a warning, or if there are other factors that will influence the anticipated closure.
Steps
Implementation history