Skip to content

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
}
}

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
@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