Skip to content
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

[6.0] Teach "find imports" to equate overlay modules with their underlying modules #74413

Conversation

DougGregor
Copy link
Member

Explanation: The operation that finds the best import for a given declaration was treating an overload module as being distinct from its underlying module, even though they both have the same name and are imported together. Teach it to treat those modules as equivalent, so we correctly identify the right import declaration for something that comes from the underlying module. This eliminates some incorrect diagnostics on @preconcurrency imports.
Original PR: #74412
Radar / issue: Fixes rdar://129401319.
Risk: Low. Only affects (wrong) diagnostics for @preconcurrency imports.

…modules

The operation that finds the best import for a given declaration was
treating an overload module as being distinct from its underlying
module, even though they both have the same name and are imported
together. Teach it to treat those modules as equivalent, so we
correctly identify the right import declaration for something that
comes from the underlying module.

Fixes rdar://129401319.
@DougGregor DougGregor requested a review from a team as a code owner June 14, 2024 00:09
@DougGregor
Copy link
Member Author

@swift-ci please test

Copy link
Member

@hborla hborla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@DougGregor DougGregor merged commit 2046d04 into swiftlang:release/6.0 Jun 14, 2024
5 checks passed
@DougGregor DougGregor deleted the preconcurrency-import-underlying-6.0 branch June 14, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants