Skip to content

[ownership] Extract out SILOwnershipKind from ValueOwnershipKind into its own type and rename Invalid -> Any. #34669

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

Conversation

gottesmm
Copy link
Contributor

This makes it easier to understand conceptually why a ValueOwnershipKind with
Any ownership is invalid and also allowed me to explicitly document the lattice
that relates ownership constraints/value ownership kinds.

@gottesmm gottesmm requested a review from atrick November 10, 2020 22:14
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm
Copy link
Contributor Author

… its own type and rename Invalid -> Any.

This makes it easier to understand conceptually why a ValueOwnershipKind with
Any ownership is invalid and also allowed me to explicitly document the lattice
that relates ownership constraints/value ownership kinds.
@gottesmm gottesmm force-pushed the pr-e67e6b91001b244349fb8858b70cfa52b2738c8d branch from 147d7da to c026e95 Compare November 10, 2020 22:30
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

Perfect, except for isCompatibleWith. Although I might have missed other functional changes...

@gottesmm
Copy link
Contributor Author

That was the only change I made. Everything else is the same.

@gottesmm
Copy link
Contributor Author

@swift-ci clean smoke test OS X platform

@gottesmm gottesmm merged commit 67608e0 into swiftlang:main Nov 11, 2020
@gottesmm gottesmm deleted the pr-e67e6b91001b244349fb8858b70cfa52b2738c8d branch November 11, 2020 02:01
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