Skip to content

Implement Casting For Extended Existentials #59455

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 4 commits into from
Jun 16, 2022
Merged

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Jun 15, 2022

Implement casting to and from extended existentials. This is done by slightly generalizing the conditional conformances checking infrastructure.

Unfortunately, casts for reference types and metatypes are unsound because IRGen is peepholing all non-opaque existential conversions with a helper. I’ll disable that in a follow-up.

rdar://92197049

@CodaFi CodaFi requested review from slavapestov and rjmccall June 15, 2022 03:33
@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 15, 2022

rdar://95166916 Tracks Fixing IRGen

@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 15, 2022

@swift-ci test

@CodaFi CodaFi force-pushed the dyno-saur branch 2 times, most recently from 77691a0 to b4ba13e Compare June 15, 2022 21:04
@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 15, 2022

@rjmccall How does it look?

@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 15, 2022

@swift-ci test

@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 15, 2022

@swift-ci smoke test

CodaFi added 4 commits June 15, 2022 18:19
Implement casting to and from extended existentials. This is done by slightly generalizing the conditional conformances checking infrastructure.

Unfortunately, casts for reference types and metatypes are unsound because IRGen is peepholing all non-opaque existential conversions with a helper. I’ll disable that in a follow-up.

rdar://92197049
@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 16, 2022

@swift-ci smoke test

@CodaFi CodaFi merged commit 34445a0 into swiftlang:main Jun 16, 2022
@CodaFi CodaFi deleted the dyno-saur branch June 16, 2022 05:56
Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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