Skip to content

Commit 4dc41b0

Browse files
author
Kohki Miki
authored
Add Sendable to FileRuleDescription (#7563)
### Motivation: I found that the `FileRuleDescription` doesn't conform to `Sendable`; due to this, some products fail to build for Swift 6. ### Modifications: Some structs conform to `Sendable` ### Result: I passed to build on the latest Swift 6.0 snapshot. ``` # swift 6.0 4/30 TOOLCHAINS=org.swift.600202404301a swift build ```
1 parent aa67a64 commit 4dc41b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageLoading/TargetSourcesBuilder.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ public struct FileRuleDescription: Sendable {
567567
/// A rule semantically describes a file/directory in a target.
568568
///
569569
/// It is up to the build system to translate a rule into a build command.
570-
public enum Rule: Equatable {
570+
public enum Rule: Equatable, Sendable {
571571
/// The compile rule for `sources` in a package.
572572
case compile
573573

0 commit comments

Comments
 (0)