Skip to content

[5.5][Serialization] Recover from failures when correcting typos in ModuleFile::lookupClassMembers #38063

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
Jun 25, 2021

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Jun 23, 2021

When diagnostics search for possible typos in the name of a member of an AnyObject instance the compiler looks at all classes and their members in all imported modules. This can cause a deserialization failure if a nonpublic class member refers to an implementation-only imported type. This change makes the compiler recover from such deserialization failure instead of crashing.

Access to a missing member on an AnyObject triggers a typo correction
that looks at all class members in imported modules. Make sure it
recovers from deserializing members referencing implementation-only
imported types.

rdar://79427805
@xymus xymus added the r5.5 label Jun 23, 2021
@xymus xymus requested review from bnbarham and artemcm June 23, 2021 19:23
@xymus xymus requested a review from a team as a code owner June 23, 2021 19:23
@xymus
Copy link
Contributor Author

xymus commented Jun 23, 2021

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 369dd31

@xymus
Copy link
Contributor Author

xymus commented Jun 24, 2021

@swift-ci Please test macOS

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.

LGTM for the 5.5 branch.

@xymus
Copy link
Contributor Author

xymus commented Jun 24, 2021

@swift-ci Please nominate

@xymus xymus merged commit ec5db86 into swiftlang:release/5.5 Jun 25, 2021
@xymus xymus deleted the typo-ioi-5.5 branch June 25, 2021 18:39
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 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 swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants