Skip to content

Commit 3abb03c

Browse files
committed
SWBUtil,SWBTaskExecution,SWBTestSupport: remove @retroactive
Remove some retroactive conformances which triggered warnings as the types are defined within the package. Additionally, entirely remove a conformance which is now unused as the defining module would provide the conformance.
1 parent 8fb0a78 commit 3abb03c

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

Sources/SWBTaskExecution/TaskActions/AuxiliaryFileTaskAction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public final class AuxiliaryFileTaskAction: TaskAction {
123123
}
124124
}
125125

126-
extension AuxiliaryFileTaskActionContext.Diagnostic: @retroactive Serializable {
126+
extension AuxiliaryFileTaskActionContext.Diagnostic: Serializable {
127127
public func serialize<T: Serializer>(to serializer: T) {
128128
serializer.beginAggregate(2)
129129
switch kind {

Sources/SWBTestSupport/BuildOperationTester.swift

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,6 @@ extension BuildRequest {
6060
}
6161
}
6262

63-
extension TaskResult: @retroactive Equatable {
64-
package static func == (lhs: TaskResult, rhs: TaskResult) -> Bool {
65-
switch (lhs, rhs) {
66-
case let (.exit(exitStatus1, metrics1), .exit(exitStatus2, metrics2)):
67-
return exitStatus1 == exitStatus2 && metrics1 == metrics2
68-
case (.failedSetup, .failedSetup):
69-
return true
70-
case (.skipped, .skipped):
71-
return true
72-
default:
73-
return false
74-
}
75-
}
76-
}
77-
7863
package protocol BuildRequestCheckingResult {
7964
var buildRequest: BuildRequest { get }
8065
var core: Core { get }
@@ -2191,7 +2176,7 @@ extension BuildKey {
21912176
}
21922177
}
21932178

2194-
extension Registry: @retroactive BuildSystemCache where Key == Path, Value == SystemCacheEntry {
2179+
extension Registry: BuildSystemCache where Key == Path, Value == SystemCacheEntry {
21952180
package func clearCachedBuildSystem(for key: Path) {
21962181
_ = removeValue(forKey: key)
21972182
}

Sources/SWBUtil/FSProxy.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1542,7 +1542,7 @@ fileprivate extension stat {
15421542
}
15431543
}
15441544

1545-
extension timespec: @retroactive Equatable {
1545+
extension timespec: Equatable {
15461546
public static func ==(lhs: timespec, rhs: timespec) -> Bool {
15471547
return lhs.tv_sec == rhs.tv_sec && lhs.tv_nsec == rhs.tv_nsec
15481548
}

0 commit comments

Comments
 (0)