Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix Sendable conformance for Lock #2556

Merged
merged 1 commit into from
Oct 16, 2023
Merged

Conversation

FranzBusch
Copy link
Member

Motivation

The latest nightly toolchains have merged the patch that removes Sendable conformance from the various Unsafe*Pointer APIs. Our Lock type was using such a type internally and had a Sendable conformance. This conformance was now failing since the pointer was no longer Sendable.

Modification

This PR changes the Sendable conformance of Lock to @unchecked Sendable.

Result

No more Sendable warnings in non-strict mode on nightly toolchains

# Motivation
The latest nightly toolchains have merged the patch that removes `Sendable` conformance from the various `Unsafe*Pointer` APIs. Our `Lock` type was using such a type internally and had a `Sendable` conformance. This conformance was now failing since the pointer was no longer `Sendable`.

# Modification
This PR changes the `Sendable` conformance of `Lock` to `@unchecked Sendable`.

# Result
No more `Sendable` warnings in non-strict mode on nightly toolchains
@FranzBusch FranzBusch added the 🔨 semver/patch No public API change. label Oct 16, 2023
@FranzBusch FranzBusch requested a review from Lukasa October 16, 2023 10:22
@FranzBusch FranzBusch enabled auto-merge (squash) October 16, 2023 10:29
@FranzBusch FranzBusch merged commit 17eab37 into apple:main Oct 16, 2023
@FranzBusch FranzBusch deleted the fb-sendalbe-lock branch October 16, 2023 10:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants