Skip to content

Delete DeclValidationRAII #27777

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 3 commits into from
Oct 18, 2019
Merged

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Oct 18, 2019

In order to do this, we have to remove the last client which was PrecedenceGroupDecl validation. Therefore, this pull request required the following:

  • Promote the lookup request to a type checker request and move all the machinery
  • Add custom request-evaluator-based diagnostics to catch in-module simple precedence group cycles (note that cross-module cycles and complex cycles are still caught using the old machinery)

Use the request evaluator to get the easier in-module precedence group cycles.   Unfortunately, cross-module precedence group cycles are still a possibility, and do not actually cause cyclic request evaluation, so we cannot completely erase the old diagnostics machinery.

Move the machinery itself into the type checker and shift the request into that zone as well to appease the linker.
The last real client was precedence group validation.
@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 18, 2019

@swift-ci please smoke test

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 18, 2019

⛵️

@CodaFi CodaFi merged commit 4145737 into swiftlang:master Oct 18, 2019
@CodaFi CodaFi deleted the a-circular-hierarchy-of-needs branch October 18, 2019 19:49
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