Skip to content

[ownership] Trivial/Any have both been merged in ValueOwnershipKind::None for a long time so these code paths are unnecessary. #29606

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

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Feb 3, 2020

Since non-payloaded cases of non-trivial enums have ValueOwnershipKind::None
ownership, the compatibility maps that we return cause this case to just work as
expected due to the way we merge and the way compatibility maps work.

Specifically, a compatibility map no matter the base ownership kind, lifetime constraint will always accept .none as must be live.

…None for a long time so these code paths are unnecessary.

Since non-payloaded cases of non-trivial enums have ValueOwnershipKind::None
ownership, the compatibility maps that we return cause this case to just work as
expected due to the way we merge.
@gottesmm
Copy link
Contributor Author

gottesmm commented Feb 3, 2020

@swift-ci test

@gottesmm
Copy link
Contributor Author

gottesmm commented Feb 3, 2020

@swift-ci test windows platform

@gottesmm
Copy link
Contributor Author

gottesmm commented Feb 3, 2020

@swift-ci test source compatibility

@gottesmm gottesmm requested a review from atrick February 3, 2020 02:03
@gottesmm
Copy link
Contributor Author

gottesmm commented Feb 3, 2020

@swift-ci test windows platform

@gottesmm gottesmm merged commit bcb18ea into swiftlang:master Feb 3, 2020
@gottesmm gottesmm deleted the pr-9f47b4f61d7482fa90b57ac220aa75baadd14cfc branch February 3, 2020 07:38
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