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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

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

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.

1 participant