Skip to content

Conversation

@slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Jan 17, 2024

  • We weren't diagnosing @retroactive one way or the other with conditional conformances.
  • Clean up and consolidate all the isSendableType() variants.
  • A couple of other smaller cleanups.

@slavapestov slavapestov force-pushed the sendable-type-and-more branch from 4f7cdde to d2b2555 Compare January 17, 2024 03:44
@ahoppen ahoppen removed their request for review January 17, 2024 16:58
In preparation for checkRequirements() asserting upon encountering
type parameters. Should be NFC.
Passing in the declared interface type to checkConformance() here
masked a silent failure where if the type declaration was generic
and the conformance conditional, the conditional requirement check
would fail. As a result, we did not diagnose the absence of
@retroactive, nor the unnecessary presence of it.

Since we only care about the existence of some conformance, we
can use lookupConformance() instead.
I want to slim down ConformanceChecker because it doesn't really fit
with request-driven resolution of witnesses. This is a first step
towards that.
@slavapestov slavapestov force-pushed the sendable-type-and-more branch from d2b2555 to 5249432 Compare January 17, 2024 18:09
@slavapestov slavapestov requested a review from a team as a code owner January 17, 2024 18:09
@slavapestov slavapestov changed the title AST: Clean up isSendableType() Fix @retroactive for conditional conformances, and more Jan 17, 2024
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

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