Skip to content

[Sema][CSSimplify] Account for synthesized args when diagnosing labelling issues in matchCallArgumentsImpl #38702

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
Jul 30, 2021

Conversation

nathawes
Copy link
Contributor

@nathawes nathawes commented Jul 30, 2021

Unfulfilled params get arguments synthesized for them which are added to the end of the argument list. Later logic to detect out-of-order arguments and produce relabelling fixes treated them as real arguments appearing at the end of the argument list though.

This improves several diagnostics for call sites with both missing and mislabelled call arguments in the existing tests.

…ling issues in matchCallArgumentsImpl

Unfulfilled params get arguments synthesized for them which are added
to the end of the argument list. Later logic to detect out-of-order
arguments and produce relabelling fixes didn't account for them though.
This improves several diagnostics for mislabelled call arguments in the
existing tests.
@nathawes nathawes requested a review from xedin July 30, 2021 05:04
@bnbarham
Copy link
Contributor

@swift-ci please test

Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@xedin xedin merged commit d61d923 into swiftlang:main Jul 30, 2021
@nathawes nathawes deleted the account-for-synthesized-args branch July 31, 2021 05:29
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.

3 participants