Skip to content

Prevent noncopyable metatypes from being converted to Any #65606

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 1 commit into from
May 4, 2023

Conversation

kavon
Copy link
Member

@kavon kavon commented May 3, 2023

These metatypes are a gateway to more incorrect
uses of these noncopyable values because we don't
yet have the corresponding runtime support yet.
The other use cases of using metatypes of
noncopyable types in generics is not high enough to warrant people using them yet.

resolves rdar://106452518

@kavon kavon requested review from hborla, xedin and slavapestov as code owners May 3, 2023 00:34
@kavon
Copy link
Member Author

kavon commented May 3, 2023

@swift-ci please test

@kavon kavon force-pushed the noncopyable-metatypes branch from da54baf to ae9660c Compare May 3, 2023 02:15
@kavon
Copy link
Member Author

kavon commented May 3, 2023

@swift-ci please test

These metatypes are a gateway to more incorrect
uses of these noncopyable values because we don't
yet have the corresponding runtime support yet.
The other use cases of using metatypes of
noncopyable types in generics is not high enough to
warrant people using them yet.

resolves rdar://106452518
@kavon kavon force-pushed the noncopyable-metatypes branch from ae9660c to 4710fc6 Compare May 3, 2023 17:23
@kavon kavon requested a review from ktoso as a code owner May 3, 2023 17:23
@kavon
Copy link
Member Author

kavon commented May 3, 2023

@swift-ci please test

@hamishknight
Copy link
Contributor

This appears to have broken CI, put up a revert: #65648

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