Skip to content

Add Sendable to Date, DateComponents and Data #4777

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 2 commits into from
Jun 27, 2023

Conversation

FranzBusch
Copy link
Member

No description provided.

@jmschonfeld jmschonfeld self-requested a review June 22, 2023 16:15
@@ -19,7 +19,7 @@ import CoreFoundation

A `Date` is independent of a particular calendar or time zone. To represent a `Date` to a user, you must interpret it in the context of a `Calendar`.
*/
public struct Date : ReferenceConvertible, Comparable, Equatable {
public struct Date : ReferenceConvertible, Comparable, Equatable, @unchecked Sendable {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need to be @unchecked? I think this can just be Sendable since the type is fairly trivial, and that way we can have some compiler validation on the conformance

@jmschonfeld
Copy link
Contributor

@swift-ci please test

@FranzBusch
Copy link
Member Author

@swift-ci please test

@Azoy
Copy link
Contributor

Azoy commented Jun 27, 2023

@swift-ci please test Windows

@jmschonfeld jmschonfeld merged commit 1527a7f into swiftlang:main Jun 27, 2023
FranzBusch added a commit to FranzBusch/swift-corelibs-foundation that referenced this pull request Sep 25, 2023
# Motivation
In swiftlang#4777, I made them `Sendable` in the overlay instead of the real `Foundation` module. This PR fixes that.
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.

3 participants