Skip to content

Commit 244703f

Browse files
authored
[6.0] NFC: Make 'FileRuleDescription.Rule' conform to Sendable (#7781)
**Explanation**: `TargetSourcesBuilder.swift`: Stored property 'rule' of 'Sendable'-conforming struct 'FileRuleDescription' has non-sendable type 'FileRuleDescription.Rule'; this is an error in the Swift 6 language mode. **Scope**: Non-functional change. **Risk**: Very low as it's an NFC change removing a compiler warning. **Testing**: Manually verified that the warning is resolved. **Issue**: rdar://131439553 **Reviewer**: @bnbarham
1 parent 5671cf7 commit 244703f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageLoading/TargetSourcesBuilder.swift

Lines changed: 1 addition & 1 deletion
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: Sendable, Equatable {
571571
/// The compile rule for `sources` in a package.
572572
case compile
573573

0 commit comments

Comments
 (0)