Skip to content

Sema: Decouple type witness resolution from the ConformanceChecker #71131

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

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Jan 24, 2024

Follow-up to #71041 and #71058 .

The conformance checker had an extremely convoluted scheme for tracking diagnostics and missing witnesses that can only be described as a complex state machine. This PR greatly simplifies this mechanism. This allows moving type witness resolution out of the ConformanceChecker.

This removes ProtocolConformanceState::CheckingTypeWitnesses, which was added with commit 161f309 back in 2015 (!) by none other than @DougGregor himself.

@slavapestov slavapestov force-pushed the conformance-checker-vs-type-witnesses-untangling branch from 4f3f156 to 979fc28 Compare January 25, 2024 02:45
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test Linux

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