Skip to content

[transferring] Make transferring conditionally suppressible and validate that we do suppress transferring in swift interface files. #73355

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

Importantly I added tests that validated this behavior.

rdar://126780823

@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm enabled auto-merge April 30, 2024 21:31
Copy link
Contributor

@tshortli tshortli left a comment

Choose a reason for hiding this comment

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

Thanks!

@tshortli
Copy link
Contributor

If a lot of existing APIs are going to adopt transferring, we may want to invert this by always printing a suppressed alternative so that we don't accidentally make APIs disappear by adopting transferring and forgetting @_allowFeatureSuppression. Is there a motivation for only conditionally printing suppressed alternatives? The @_disallowFeatureSuppression attribute exists for edge cases where we need to hide the alternatives.

@gottesmm gottesmm disabled auto-merge April 30, 2024 22:00
@gottesmm
Copy link
Contributor Author

For anyone listening in, @tshortli and I touched base offline and agreed that it made sense to not conditionally suppress and just suppress.

… suppress transferring in swift interface files.

Importantly I added tests that validated this behavior.

rdar://126780823
@gottesmm gottesmm force-pushed the pr-acaafaf08d92c2605381e4381508530cf0c3a1ba branch from 5d6c86a to dc25857 Compare April 30, 2024 23:40
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@gottesmm gottesmm enabled auto-merge April 30, 2024 23:41
@gottesmm gottesmm merged commit 85cabf5 into swiftlang:main May 1, 2024
@gottesmm gottesmm deleted the pr-acaafaf08d92c2605381e4381508530cf0c3a1ba branch May 1, 2024 04:00
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