Skip to content

[5.8] don't assert when a module re-exports a module and one of its symbols #64480

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

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

QuietMisdreavus
Copy link
Contributor

Resolves rdar://106807038

Cherry-pick of #64479 to release/5.8 to fix Linux builds for situations mentioned in the other PR, since Linux builds of the compiler keep assertions enabled.

@QuietMisdreavus QuietMisdreavus requested a review from a team as a code owner March 20, 2023 16:24
@QuietMisdreavus
Copy link
Contributor Author

@swift-ci Please test

Copy link
Contributor

@xymus xymus left a comment

Choose a reason for hiding this comment

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

This looks good!

Qualified reexport has caused us other problems recently at the lookup level. It was interesting to see it being supported by collectParsedExportedSymbols. Did you notice other logic specifically to deal with qualified reexports elsewhere in the compiler by chance?

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

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

This fix looks very reasonable to me!

@QuietMisdreavus
Copy link
Contributor Author

@xymus I'm not sure about other places in the compiler; collectParsedExportedSymbols was put in specifically to support SymbolGraphGen. 😅

@airspeedswift airspeedswift merged commit 46cd560 into release/5.8 Mar 22, 2023
@airspeedswift airspeedswift deleted the QuietMisdreavus/5.8/duplicate-reexport branch March 22, 2023 03:19
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants