Skip to content

[6.0] [Completion] Skip tryOptimizeGenericDisjunction if there's a completion child #74420

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

Conversation

hamishknight
Copy link
Contributor

6.0 cherry-pick of #74352

  • Explanation: Fixes an issue where code completion would incorrectly favor one overload over another.
  • Scope: Affects code completion.
  • Issue: rdar://127844278
  • Risk: Low, the fix is fairly straightforward. The main concern would be regressing completion performance, though it passes the stress tester.
  • Testing: Added tests to test suite
  • Reviewer: Pavel Yaskevich

…tion child

Attempting to favor a disjunction choice here
can lead to unhelpful results if there's e.g a code
completion token argument, since it acts as a
placeholder.

rdar://127844278
@hamishknight hamishknight added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Jun 14, 2024
@hamishknight hamishknight requested a review from bnbarham June 14, 2024 10:18
@hamishknight hamishknight requested a review from a team as a code owner June 14, 2024 10:18
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit 47c7c2d into swiftlang:release/6.0 Jun 14, 2024
5 checks passed
@hamishknight hamishknight deleted the complete-disjunction-6.0 branch June 14, 2024 18:20
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.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants