Skip to content

[Concurrency] Remove redundant Sendable conformances in the standard library. #75495

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

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

hborla
Copy link
Member

@hborla hborla commented Jul 26, 2024

These conformances are all redundant because the Sendable conformance is inherited from a superclass. This resolves a slew of concurrency warnings about redundant Sendable conformances which were introduced by #75135.

…d library.

These conformances are all redundant because the `Sendable` conformance is
inherited from a superclass.
@hborla hborla requested a review from a team as a code owner July 26, 2024 04:56
@@ -511,6 +505,3 @@ extension _DictionaryStorage {
return storage
}
}

extension _DictionaryStorage: @unchecked Sendable
Copy link
Member Author

Choose a reason for hiding this comment

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

I believe this unchecked Sendable conformance was incorrect, and _DictionaryStorage inherits an unavailable Sendable conformance from __RawDictionaryStorage.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I think you're right about this. Should be fine to remove 👍

@hborla
Copy link
Member Author

hborla commented Jul 26, 2024

@swift-ci please smoke test

Copy link
Contributor

@Azoy Azoy left a comment

Choose a reason for hiding this comment

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

LGTM, much appreciated thanks!

@hborla hborla merged commit 7d65170 into swiftlang:main Jul 26, 2024
3 checks passed
@hborla hborla deleted the remove-redundant-sendable-stdlib branch July 26, 2024 13:38
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