Skip to content

[6.2] Serialization: Apply type-checking shadowing after deserialization filtering #80656

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
Apr 9, 2025

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Apr 8, 2025

Follow up to #80009. We can still get ambiguities from colliding decls across modules with only the deserialization filtering. Call the general lookup shadowing after the deserialization filtering, instead of before as it used to be done. This way it won't use filtered out decls to hide potential candidates and still avoid ambiguities.

Reviewed by: @tshortli

Resolves: rdar://148286345

Cherry-pick of #80550

Risk: Low, this is in effect a partial revert of #80009. It applies only when deserialization lookup finds two decls corresponding to the same criteria.

Followup fix to swiftlang#80009. We can still get ambiguities from colliding
decls across modules with the deserialization filtering. Bring back
calling the general lookup shadowing after the filtering. This way it
won't use filtered out decls to hide potential candidates.

rdar://148286345
@xymus xymus added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Apr 8, 2025
@xymus xymus requested a review from a team as a code owner April 8, 2025 22:15
@xymus
Copy link
Contributor Author

xymus commented Apr 8, 2025

@swift-ci Please test

@xymus xymus requested a review from nkcsgexi April 8, 2025 22:16
@xymus xymus changed the title [6.2] Serialization: Apply type-checking shadowing only after the filtering [6.2] Serialization: Apply type-checking shadowing after deserialization filtering Apr 8, 2025
@xymus xymus merged commit 59adcae into swiftlang:release/6.2 Apr 9, 2025
5 checks passed
@xymus xymus deleted the deser-late-shadowing-6.2 branch April 9, 2025 16:44
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 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants