Skip to content

Conversation

FranzBusch
Copy link
Member

No description provided.

@jmschonfeld jmschonfeld self-requested a review June 22, 2023 16:15
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