Skip to content

[sending] Replace sending with consuming when suppressing sending from arguments in swiftinterface files. #75075

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 Jul 8, 2024

[sending] Replace sending with consuming when suppressing sending from arguments in swiftinterface files.

Previously we would just not print sending. This causes problems since sending implies a +1 parameter and by removing it we convert the parameter to a +0 parameter, breaking ABI. In this commit, I make it so that when we suppress sending from argument parameters, we just replace it with consuming so that we preserve ABI even for callers who do not support sending.

rdar://131066640

…m arguments in swiftinterface files.

Previously we would just not print sending. This causes problems since sending
implies a +1 parameter and by removing it we convert the parameter to a +0
parameter, breaking ABI. In this commit, I make it so that when we suppress
sending from argument parameters, we just replace it with consuming so that we
preserve ABI even for callers who do not support sending.

rdar://131066640
@gottesmm
Copy link
Contributor Author

gottesmm commented Jul 8, 2024

@swift-ci smoke test

@gottesmm gottesmm enabled auto-merge July 8, 2024 19:34
@gottesmm gottesmm merged commit 4e4d547 into swiftlang:main Jul 8, 2024
3 checks passed
@gottesmm gottesmm deleted the pr-cfbc6f64017b07444d455e0749a0ba16dd6f7062 branch July 10, 2024 19:39
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