Skip to content

[CS] Better handle unsupported result builder elements for completion #83632

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 4 commits into from
Aug 11, 2025

Conversation

hamishknight
Copy link
Contributor

Instead of failing, fall back to solving as a regular function body.

rdar://144303920

Make sure we continue to solve the body normally rather than bailing
early.
`isBuildableIfChainRecursive` never returned anything other than `true`,
change it to just be a void call.
If `matchResultBuilder` returns `nullopt` we should be bailing,
rather than continuing, which would attempt to solve with an empty
constraint system.
Instead of failing, fall back to solving as a regular function body.

rdar://144303920
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit d1fb307 into swiftlang:main Aug 11, 2025
5 checks passed
@hamishknight hamishknight deleted the complete-result branch August 11, 2025 21:33
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