Skip to content
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

Fix Sendable conformance for Lock #2556

Merged
merged 1 commit into from Oct 16, 2023
Merged

Conversation

FranzBusch
Copy link
Contributor

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 patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1) label Oct 16, 2023
@FranzBusch FranzBusch enabled auto-merge (squash) October 16, 2023 10:29
@FranzBusch FranzBusch merged commit 17eab37 into apple:main Oct 16, 2023
6 of 8 checks passed
@FranzBusch FranzBusch deleted the fb-sendalbe-lock branch October 16, 2023 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants