Skip to content

Sema: Check conditional availability earlier in conformance checking #38329

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

We would only check conditioanlavailability once we had committed
to a best witness. Instead, let's use this information to disambiguate
among multiple best witnesses, if we have them.

Access control and unconditional unavailability are still only
checked once the witness is chosen.

Fixes rdar://problem/77259046.

@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@swift-ci
Copy link
Contributor

swift-ci commented Jul 9, 2021

Build failed
Swift Test Linux Platform
Git Sha - a2597d55b03a75e6c98bd556121d9d158c431c8d

@swift-ci
Copy link
Contributor

swift-ci commented Jul 9, 2021

Build failed
Swift Test OS X Platform
Git Sha - a2597d55b03a75e6c98bd556121d9d158c431c8d

We would only check conditioanlavailability once we had committed
to a best witness. Instead, let's use this information to disambiguate
among multiple best witnesses, if we have them.

Access control and unconditional unavailability are still only
checked once the witness is chosen.

Fixes rdar://problem/77259046.
@slavapestov slavapestov force-pushed the conformance-checker-disambiguate-availability branch from a2597d5 to c508ef5 Compare July 9, 2021 22:04
@slavapestov slavapestov changed the title Sema: Check for access control and availability earlier in conformance checking Sema: Check conditional availability earlier in conformance checking Jul 9, 2021
@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov merged commit 763c2ed into swiftlang:main Jul 10, 2021
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