Skip to content

Commit ca9c93b

Browse files
authored
Merge pull request #1296 from ahoppen/guard-retroactive
Guard `@retroactive` for `CommandConfiguration` behind `#if compiler(>=5.11)`
2 parents ba56bae + 365e3a5 commit ca9c93b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Diagnose/CommandConfiguration+Sendable.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ import ArgumentParser
1414

1515
// If `CommandConfiguration` is not sendable, commands can't have static `configuration` properties.
1616
// Needed until we update Swift CI to swift-argument-parser 1.3.1, which has this conformance (rdar://128042447).
17+
#if compiler(<5.11)
18+
extension CommandConfiguration: @unchecked Sendable {}
19+
#else
1720
extension CommandConfiguration: @unchecked @retroactive Sendable {}
21+
#endif

0 commit comments

Comments
 (0)