Skip to content

[Constraint solver] Migrate for-each statement checking into SolutionApplicationTarget #30924

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

DougGregor
Copy link
Member

Pull the entirety of type checking for for-each statement headers (i.e., not the
body) into the constraint system, using the normal SolutionApplicationTarget-based
constraint generation and application facilities. Most of this was already handled
in the constraint solver (although the where filtering condition was not), so
this is a smaller change than it looks like.

This was the last client of ExprTypeCheckListener, so remove that listener interface.

…ApplicationTarget.

Pull the entirety of type checking for for-each statement headers (i.e., not the
body) into the constraint system, using the normal SolutionApplicationTarget-based
constraint generation and application facilities. Most of this was already handled
in the constraint solver (although the `where` filtering condition was not), so
this is a smaller change than it looks like.
The last client of this listener-based interface has been refactored,
so remove it.
@DougGregor DougGregor requested a review from xedin April 9, 2020 18:21
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please test source compatibility

@DougGregor
Copy link
Member Author

@swift-ci smoke test platform Linux

@DougGregor
Copy link
Member Author

@swift-ci please test source compatibility

@DougGregor
Copy link
Member Author

@swift-ci smoke test platform Linux

@DougGregor
Copy link
Member Author

@swift-ci smoke test Linux

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.

LGTM!

@DougGregor
Copy link
Member Author

@swift-ci smoke test Linux

2 similar comments
@DougGregor
Copy link
Member Author

@swift-ci smoke test Linux

@DougGregor
Copy link
Member Author

@swift-ci smoke test Linux

@DougGregor
Copy link
Member Author

Now that swiftlang/llvm-project#1057 is merged maybe Linux tests will run cleanly.

@DougGregor
Copy link
Member Author

@swift-ci smoke test Linux

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci smoke test Linux

@DougGregor DougGregor merged commit 6999c31 into swiftlang:master Apr 10, 2020
@DougGregor DougGregor deleted the for-each-solution-application-target branch April 10, 2020 16:06
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