We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sendable
In the async tests, several of the tests return structs that aren't declared Sendable:
swift-bridge/crates/swift-integration-tests/src/async_function.rs
Line 17 in 225380e
This is an error in swift 6:
/home/colinmarc/dev/swift-bridge/integration-tests/Sources/SharedLib/Generated/SharedLib.swift:4135:26: error: sending 'rustFnRetVal' risks causing data races 4133 | return await withCheckedContinuation({ (continuation: CheckedContinuation<RustString, Never>) in 4134 | let callback = { rustFnRetVal in 4135 | continuation.resume(with: rustFnRetVal) | |- error: sending 'rustFnRetVal' risks causing data races | `- note: task-isolated 'rustFnRetVal' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses 4136 | } 4137 |
See also #269, #288, #280, #310.
The text was updated successfully, but these errors were encountered:
Add Sendable to all async return types in tests
48f774b
Fixes chinedufn#311.
859fd09
Successfully merging a pull request may close this issue.
In the async tests, several of the tests return structs that aren't declared
Sendable
:swift-bridge/crates/swift-integration-tests/src/async_function.rs
Line 17 in 225380e
This is an error in swift 6:
See also #269, #288, #280, #310.
The text was updated successfully, but these errors were encountered: