Build Information
Failed to build GlueKit, reference v0.2.0 (a5766b), with Swift 6.3 for macOS (SPM) on 11 Apr 2026 13:20:33 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
43 | var hasher = SipHasher()
44 | appendHashes(to: &hasher)
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromClosure' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromClosure' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformToConstant' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformToConstant' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromMapping' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromMapping' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromOptionalMapping' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromOptionalMapping' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromFilter' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromFilter' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromSequence' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromSequence' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SipHash/SipHash/SipHashable.swift:42:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BindSink' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
40 | /// Hash values are not guaranteed to be equal across different executions of your program.
41 | /// Do not save hash values to use during a future execution.
42 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BindSink' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
43 | var hasher = SipHasher()
44 | appendHashes(to: &hasher)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[116/128] Compiling GlueKit UIBarButtonItem Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Sink.swift:49:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'AnySink' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
47 | }
48 |
49 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'AnySink' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
50 | return box.hashValue
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/Sink.swift:70:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type '_AbstractSink' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
68 | func receive(_ value: Value) { abstract() }
69 |
70 | var hashValue: Int { abstract() }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type '_AbstractSink' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
71 |
72 | func isEqual(to other: _AbstractSink<Value>) -> Bool { abstract() }
/Users/admin/builder/spi-builder-workspace/Sources/TimerSource.swift:148:5: warning: 'public' modifier is redundant for initializer declared in a public extension
146 | /// @param start: The time at which the source should fire first, or nil to begin firing `interval` seconds from now.
147 | /// @param interval: The minimum time period between the beginnings of subsequent firings.
148 | public convenience init(queue: DispatchQueue = DispatchQueue.main, start: Date? = nil, interval: TimeInterval) {
| `- warning: 'public' modifier is redundant for initializer declared in a public extension
149 | assert(interval > 0)
150 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SipHash/SipHash/SipHashable.swift:42:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TransformedSink' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
40 | /// Hash values are not guaranteed to be equal across different executions of your program.
41 | /// Do not save hash values to use during a future execution.
42 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'TransformedSink' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
43 | var hasher = SipHasher()
44 | appendHashes(to: &hasher)
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromClosure' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromClosure' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformToConstant' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformToConstant' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromMapping' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromMapping' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromOptionalMapping' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromOptionalMapping' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromFilter' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromFilter' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/TransformedSink.swift:19:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromSequence' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
17 |
18 | extension SinkTransform where Self: AnyObject {
19 | public var hashValue: Int { return ObjectIdentifier(self).hashValue }
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'SinkTransformFromSequence' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
20 | public static func ==(a: Self, b: Self) -> Bool { return a === b }
21 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SipHash/SipHash/SipHashable.swift:42:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BindSink' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
40 | /// Hash values are not guaranteed to be equal across different executions of your program.
41 | /// Do not save hash values to use during a future execution.
42 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BindSink' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
43 | var hasher = SipHasher()
44 | appendHashes(to: &hasher)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[117/128] Compiling GlueKit NSTextField Glue.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:30: error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Input.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Input.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: missing argument label 'where:' in call
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: missing argument label 'where:' in call
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:15:22: error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
15 | typealias Base = Set<Element>
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
16 |
17 | var isBuffered: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:19:16: error: type 'Self.Element' does not conform to protocol 'Hashable'
17 | var isBuffered: Bool { get }
18 | var count: Int { get }
19 | var value: Set<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:21:29: error: type 'Self.Element' does not conform to protocol 'Hashable'
19 | var value: Set<Element> { get }
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
22 | func isSuperset(of other: Set<Element>) -> Bool
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:22:31: error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
22 | func isSuperset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
23 |
24 | var observableCount: AnyObservableValue<Int> { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:26:27: error: type 'Self.Element' does not conform to protocol 'Hashable'
24 | var observableCount: AnyObservableValue<Int> { get }
25 | var anyObservableValue: AnyObservableValue<Base> { get }
26 | var anyObservableSet: AnyObservableSet<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:12:67: error: type 'Self.Element' does not conform to protocol 'Hashable'
10 | public typealias SetUpdateSource<Element: Hashable> = AnySource<Update<SetChange<Element>>>
11 |
12 | public protocol ObservableSetType: ObservableType where Change == SetChange<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:33:36: error: type 'Self.Element' does not conform to protocol 'Hashable'
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:34:38: error: type 'Self.Element' does not conform to protocol 'Hashable'
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
35 |
36 | public var isEmpty: Bool { return count == 0 }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:38:54: error: type 'Self.Element' does not conform to protocol 'Hashable'
36 | public var isEmpty: Bool { return count == 0 }
37 |
38 | internal var valueUpdates: AnySource<ValueUpdate<Set<Element>>> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
39 | var value = self.value
40 | return self.updates.map { event in
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:68:34: error: type 'Self.Element' does not conform to protocol 'Hashable'
66 | }
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
69 | return AnyObservableSet(box: ObservableSetBox(self))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:159:60: error: type 'Contents.Element' does not conform to protocol 'Hashable'
157 | }
158 |
159 | final class ObservableSetBox<Contents: ObservableSetType>: _AbstractObservableSet<Contents.Element> {
| `- error: type 'Contents.Element' does not conform to protocol 'Hashable'
160 | typealias Element = Contents.Element
161 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:170:25: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
168 | override var isBuffered: Bool { return contents.isBuffered }
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:171:19: error: method does not override any method from its superclass
118 | open var isBuffered: Bool { return false }
119 | open var count: Int { return value.count }
120 | open func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- note: potential overridden instance method 'contains' here
121 | open func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
122 | open func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
:
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
| `- error: method does not override any method from its superclass
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:172:38: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:173:40: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:175:19: error: method does not override any method from its superclass
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
176 | contents.add(sink)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:180:19: error: method does not override any method from its superclass
178 |
179 | @discardableResult
180 | override func remove<Sink: SinkType>(_ sink: Sink) -> Sink where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
181 | return contents.remove(sink)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:185:57: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
183 |
184 | override var observableCount: AnyObservableValue<Int> { return contents.observableCount }
185 | override var anyObservableValue: AnyObservableValue<Set<Element>> { return contents.anyObservableValue }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:59: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:42: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:220:43: error: type 'Self.Element' does not conform to protocol 'Hashable'
218 | }
219 |
220 | public static func emptyConstant() -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
221 | return constant([])
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: missing argument label 'where:' in call
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: missing argument label 'where:' in call
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:43:23: error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
41 | event.map { change in
42 | let old = value
43 | value.apply(change)
| `- error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
44 | return ValueChange(from: old, to: value)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:70:1: note: where 'Element' = 'Self.Element'
68 | }
69 |
70 | extension Set {
| `- note: where 'Element' = 'Self.Element'
71 | public mutating func apply(_ change: SetChange<Element>) {
72 | self.subtract(change.removed)
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:54:45: error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
52 | update.map { change in
53 | let old = count
54 | count += numericCast(change.inserted.count - change.removed.count)
| `- error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
55 | return .init(from: old, to: count)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Self.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Self.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:69:38: error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
69 | return AnyObservableSet(box: ObservableSetBox(self))
| `- error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableValue.swift:179:5: warning: 'public' modifier is redundant for static method declared in a public extension
177 | public extension ObservableValueType {
178 | /// Creates a constant observable wrapping the given value. The returned observable is not modifiable and it will not ever send updates.
179 | public static func constant(_ value: Value) -> AnyObservableValue<Value> {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
180 | return ConstantObservable(value).anyObservableValue
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/RefList.swift:83:47: warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
81 | }
82 |
83 | internal subscript(bounds: Range<Int>) -> MutableRangeReplaceableRandomAccessSlice<RefList> {
| |- warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
| `- note: use 'Slice' instead
84 | get {
85 | return .init(base: self, bounds: bounds)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[118/128] Compiling GlueKit ObservableArray.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:30: error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Input.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Input.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: missing argument label 'where:' in call
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: missing argument label 'where:' in call
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:15:22: error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
15 | typealias Base = Set<Element>
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
16 |
17 | var isBuffered: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:19:16: error: type 'Self.Element' does not conform to protocol 'Hashable'
17 | var isBuffered: Bool { get }
18 | var count: Int { get }
19 | var value: Set<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:21:29: error: type 'Self.Element' does not conform to protocol 'Hashable'
19 | var value: Set<Element> { get }
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
22 | func isSuperset(of other: Set<Element>) -> Bool
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:22:31: error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
22 | func isSuperset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
23 |
24 | var observableCount: AnyObservableValue<Int> { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:26:27: error: type 'Self.Element' does not conform to protocol 'Hashable'
24 | var observableCount: AnyObservableValue<Int> { get }
25 | var anyObservableValue: AnyObservableValue<Base> { get }
26 | var anyObservableSet: AnyObservableSet<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:12:67: error: type 'Self.Element' does not conform to protocol 'Hashable'
10 | public typealias SetUpdateSource<Element: Hashable> = AnySource<Update<SetChange<Element>>>
11 |
12 | public protocol ObservableSetType: ObservableType where Change == SetChange<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:33:36: error: type 'Self.Element' does not conform to protocol 'Hashable'
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:34:38: error: type 'Self.Element' does not conform to protocol 'Hashable'
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
35 |
36 | public var isEmpty: Bool { return count == 0 }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:38:54: error: type 'Self.Element' does not conform to protocol 'Hashable'
36 | public var isEmpty: Bool { return count == 0 }
37 |
38 | internal var valueUpdates: AnySource<ValueUpdate<Set<Element>>> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
39 | var value = self.value
40 | return self.updates.map { event in
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:68:34: error: type 'Self.Element' does not conform to protocol 'Hashable'
66 | }
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
69 | return AnyObservableSet(box: ObservableSetBox(self))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:159:60: error: type 'Contents.Element' does not conform to protocol 'Hashable'
157 | }
158 |
159 | final class ObservableSetBox<Contents: ObservableSetType>: _AbstractObservableSet<Contents.Element> {
| `- error: type 'Contents.Element' does not conform to protocol 'Hashable'
160 | typealias Element = Contents.Element
161 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:170:25: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
168 | override var isBuffered: Bool { return contents.isBuffered }
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:171:19: error: method does not override any method from its superclass
118 | open var isBuffered: Bool { return false }
119 | open var count: Int { return value.count }
120 | open func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- note: potential overridden instance method 'contains' here
121 | open func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
122 | open func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
:
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
| `- error: method does not override any method from its superclass
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:172:38: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:173:40: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:175:19: error: method does not override any method from its superclass
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
176 | contents.add(sink)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:180:19: error: method does not override any method from its superclass
178 |
179 | @discardableResult
180 | override func remove<Sink: SinkType>(_ sink: Sink) -> Sink where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
181 | return contents.remove(sink)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:185:57: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
183 |
184 | override var observableCount: AnyObservableValue<Int> { return contents.observableCount }
185 | override var anyObservableValue: AnyObservableValue<Set<Element>> { return contents.anyObservableValue }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:59: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:42: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:220:43: error: type 'Self.Element' does not conform to protocol 'Hashable'
218 | }
219 |
220 | public static func emptyConstant() -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
221 | return constant([])
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: missing argument label 'where:' in call
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: missing argument label 'where:' in call
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:43:23: error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
41 | event.map { change in
42 | let old = value
43 | value.apply(change)
| `- error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
44 | return ValueChange(from: old, to: value)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:70:1: note: where 'Element' = 'Self.Element'
68 | }
69 |
70 | extension Set {
| `- note: where 'Element' = 'Self.Element'
71 | public mutating func apply(_ change: SetChange<Element>) {
72 | self.subtract(change.removed)
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:54:45: error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
52 | update.map { change in
53 | let old = count
54 | count += numericCast(change.inserted.count - change.removed.count)
| `- error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
55 | return .init(from: old, to: count)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Self.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Self.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:69:38: error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
69 | return AnyObservableSet(box: ObservableSetBox(self))
| `- error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableValue.swift:179:5: warning: 'public' modifier is redundant for static method declared in a public extension
177 | public extension ObservableValueType {
178 | /// Creates a constant observable wrapping the given value. The returned observable is not modifiable and it will not ever send updates.
179 | public static func constant(_ value: Value) -> AnyObservableValue<Value> {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
180 | return ConstantObservable(value).anyObservableValue
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/RefList.swift:83:47: warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
81 | }
82 |
83 | internal subscript(bounds: Range<Int>) -> MutableRangeReplaceableRandomAccessSlice<RefList> {
| |- warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
| `- note: use 'Slice' instead
84 | get {
85 | return .init(base: self, bounds: bounds)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[119/128] Compiling GlueKit ObservableContains.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:30: error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Input.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Input.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: missing argument label 'where:' in call
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: missing argument label 'where:' in call
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:15:22: error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
15 | typealias Base = Set<Element>
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
16 |
17 | var isBuffered: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:19:16: error: type 'Self.Element' does not conform to protocol 'Hashable'
17 | var isBuffered: Bool { get }
18 | var count: Int { get }
19 | var value: Set<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:21:29: error: type 'Self.Element' does not conform to protocol 'Hashable'
19 | var value: Set<Element> { get }
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
22 | func isSuperset(of other: Set<Element>) -> Bool
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:22:31: error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
22 | func isSuperset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
23 |
24 | var observableCount: AnyObservableValue<Int> { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:26:27: error: type 'Self.Element' does not conform to protocol 'Hashable'
24 | var observableCount: AnyObservableValue<Int> { get }
25 | var anyObservableValue: AnyObservableValue<Base> { get }
26 | var anyObservableSet: AnyObservableSet<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:12:67: error: type 'Self.Element' does not conform to protocol 'Hashable'
10 | public typealias SetUpdateSource<Element: Hashable> = AnySource<Update<SetChange<Element>>>
11 |
12 | public protocol ObservableSetType: ObservableType where Change == SetChange<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:33:36: error: type 'Self.Element' does not conform to protocol 'Hashable'
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:34:38: error: type 'Self.Element' does not conform to protocol 'Hashable'
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
35 |
36 | public var isEmpty: Bool { return count == 0 }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:38:54: error: type 'Self.Element' does not conform to protocol 'Hashable'
36 | public var isEmpty: Bool { return count == 0 }
37 |
38 | internal var valueUpdates: AnySource<ValueUpdate<Set<Element>>> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
39 | var value = self.value
40 | return self.updates.map { event in
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:68:34: error: type 'Self.Element' does not conform to protocol 'Hashable'
66 | }
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
69 | return AnyObservableSet(box: ObservableSetBox(self))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:159:60: error: type 'Contents.Element' does not conform to protocol 'Hashable'
157 | }
158 |
159 | final class ObservableSetBox<Contents: ObservableSetType>: _AbstractObservableSet<Contents.Element> {
| `- error: type 'Contents.Element' does not conform to protocol 'Hashable'
160 | typealias Element = Contents.Element
161 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:170:25: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
168 | override var isBuffered: Bool { return contents.isBuffered }
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:171:19: error: method does not override any method from its superclass
118 | open var isBuffered: Bool { return false }
119 | open var count: Int { return value.count }
120 | open func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- note: potential overridden instance method 'contains' here
121 | open func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
122 | open func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
:
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
| `- error: method does not override any method from its superclass
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:172:38: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:173:40: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:175:19: error: method does not override any method from its superclass
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
176 | contents.add(sink)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:180:19: error: method does not override any method from its superclass
178 |
179 | @discardableResult
180 | override func remove<Sink: SinkType>(_ sink: Sink) -> Sink where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
181 | return contents.remove(sink)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:185:57: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
183 |
184 | override var observableCount: AnyObservableValue<Int> { return contents.observableCount }
185 | override var anyObservableValue: AnyObservableValue<Set<Element>> { return contents.anyObservableValue }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:59: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:42: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:220:43: error: type 'Self.Element' does not conform to protocol 'Hashable'
218 | }
219 |
220 | public static func emptyConstant() -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
221 | return constant([])
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: missing argument label 'where:' in call
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: missing argument label 'where:' in call
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:43:23: error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
41 | event.map { change in
42 | let old = value
43 | value.apply(change)
| `- error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
44 | return ValueChange(from: old, to: value)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:70:1: note: where 'Element' = 'Self.Element'
68 | }
69 |
70 | extension Set {
| `- note: where 'Element' = 'Self.Element'
71 | public mutating func apply(_ change: SetChange<Element>) {
72 | self.subtract(change.removed)
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:54:45: error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
52 | update.map { change in
53 | let old = count
54 | count += numericCast(change.inserted.count - change.removed.count)
| `- error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
55 | return .init(from: old, to: count)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Self.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Self.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:69:38: error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
69 | return AnyObservableSet(box: ObservableSetBox(self))
| `- error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableValue.swift:179:5: warning: 'public' modifier is redundant for static method declared in a public extension
177 | public extension ObservableValueType {
178 | /// Creates a constant observable wrapping the given value. The returned observable is not modifiable and it will not ever send updates.
179 | public static func constant(_ value: Value) -> AnyObservableValue<Value> {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
180 | return ConstantObservable(value).anyObservableValue
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/RefList.swift:83:47: warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
81 | }
82 |
83 | internal subscript(bounds: Range<Int>) -> MutableRangeReplaceableRandomAccessSlice<RefList> {
| |- warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
| `- note: use 'Slice' instead
84 | get {
85 | return .init(base: self, bounds: bounds)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[120/128] Compiling GlueKit ObservableSet.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:30: error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Input.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Input.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: missing argument label 'where:' in call
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: missing argument label 'where:' in call
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:15:22: error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
15 | typealias Base = Set<Element>
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
16 |
17 | var isBuffered: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:19:16: error: type 'Self.Element' does not conform to protocol 'Hashable'
17 | var isBuffered: Bool { get }
18 | var count: Int { get }
19 | var value: Set<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:21:29: error: type 'Self.Element' does not conform to protocol 'Hashable'
19 | var value: Set<Element> { get }
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
22 | func isSuperset(of other: Set<Element>) -> Bool
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:22:31: error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
22 | func isSuperset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
23 |
24 | var observableCount: AnyObservableValue<Int> { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:26:27: error: type 'Self.Element' does not conform to protocol 'Hashable'
24 | var observableCount: AnyObservableValue<Int> { get }
25 | var anyObservableValue: AnyObservableValue<Base> { get }
26 | var anyObservableSet: AnyObservableSet<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:12:67: error: type 'Self.Element' does not conform to protocol 'Hashable'
10 | public typealias SetUpdateSource<Element: Hashable> = AnySource<Update<SetChange<Element>>>
11 |
12 | public protocol ObservableSetType: ObservableType where Change == SetChange<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:33:36: error: type 'Self.Element' does not conform to protocol 'Hashable'
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:34:38: error: type 'Self.Element' does not conform to protocol 'Hashable'
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
35 |
36 | public var isEmpty: Bool { return count == 0 }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:38:54: error: type 'Self.Element' does not conform to protocol 'Hashable'
36 | public var isEmpty: Bool { return count == 0 }
37 |
38 | internal var valueUpdates: AnySource<ValueUpdate<Set<Element>>> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
39 | var value = self.value
40 | return self.updates.map { event in
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:68:34: error: type 'Self.Element' does not conform to protocol 'Hashable'
66 | }
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
69 | return AnyObservableSet(box: ObservableSetBox(self))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:159:60: error: type 'Contents.Element' does not conform to protocol 'Hashable'
157 | }
158 |
159 | final class ObservableSetBox<Contents: ObservableSetType>: _AbstractObservableSet<Contents.Element> {
| `- error: type 'Contents.Element' does not conform to protocol 'Hashable'
160 | typealias Element = Contents.Element
161 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:170:25: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
168 | override var isBuffered: Bool { return contents.isBuffered }
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:171:19: error: method does not override any method from its superclass
118 | open var isBuffered: Bool { return false }
119 | open var count: Int { return value.count }
120 | open func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- note: potential overridden instance method 'contains' here
121 | open func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
122 | open func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
:
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
| `- error: method does not override any method from its superclass
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:172:38: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:173:40: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:175:19: error: method does not override any method from its superclass
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
176 | contents.add(sink)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:180:19: error: method does not override any method from its superclass
178 |
179 | @discardableResult
180 | override func remove<Sink: SinkType>(_ sink: Sink) -> Sink where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
181 | return contents.remove(sink)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:185:57: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
183 |
184 | override var observableCount: AnyObservableValue<Int> { return contents.observableCount }
185 | override var anyObservableValue: AnyObservableValue<Set<Element>> { return contents.anyObservableValue }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:59: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:42: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:220:43: error: type 'Self.Element' does not conform to protocol 'Hashable'
218 | }
219 |
220 | public static func emptyConstant() -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
221 | return constant([])
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: missing argument label 'where:' in call
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: missing argument label 'where:' in call
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:43:23: error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
41 | event.map { change in
42 | let old = value
43 | value.apply(change)
| `- error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
44 | return ValueChange(from: old, to: value)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:70:1: note: where 'Element' = 'Self.Element'
68 | }
69 |
70 | extension Set {
| `- note: where 'Element' = 'Self.Element'
71 | public mutating func apply(_ change: SetChange<Element>) {
72 | self.subtract(change.removed)
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:54:45: error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
52 | update.map { change in
53 | let old = count
54 | count += numericCast(change.inserted.count - change.removed.count)
| `- error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
55 | return .init(from: old, to: count)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Self.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Self.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:69:38: error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
69 | return AnyObservableSet(box: ObservableSetBox(self))
| `- error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableValue.swift:179:5: warning: 'public' modifier is redundant for static method declared in a public extension
177 | public extension ObservableValueType {
178 | /// Creates a constant observable wrapping the given value. The returned observable is not modifiable and it will not ever send updates.
179 | public static func constant(_ value: Value) -> AnyObservableValue<Value> {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
180 | return ConstantObservable(value).anyObservableValue
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/RefList.swift:83:47: warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
81 | }
82 |
83 | internal subscript(bounds: Range<Int>) -> MutableRangeReplaceableRandomAccessSlice<RefList> {
| |- warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
| `- note: use 'Slice' instead
84 | get {
85 | return .init(base: self, bounds: bounds)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[121/128] Compiling GlueKit ObservableType.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:30: error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Input.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Input.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: missing argument label 'where:' in call
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: missing argument label 'where:' in call
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:15:22: error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
15 | typealias Base = Set<Element>
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
16 |
17 | var isBuffered: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:19:16: error: type 'Self.Element' does not conform to protocol 'Hashable'
17 | var isBuffered: Bool { get }
18 | var count: Int { get }
19 | var value: Set<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:21:29: error: type 'Self.Element' does not conform to protocol 'Hashable'
19 | var value: Set<Element> { get }
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
22 | func isSuperset(of other: Set<Element>) -> Bool
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:22:31: error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
22 | func isSuperset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
23 |
24 | var observableCount: AnyObservableValue<Int> { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:26:27: error: type 'Self.Element' does not conform to protocol 'Hashable'
24 | var observableCount: AnyObservableValue<Int> { get }
25 | var anyObservableValue: AnyObservableValue<Base> { get }
26 | var anyObservableSet: AnyObservableSet<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:12:67: error: type 'Self.Element' does not conform to protocol 'Hashable'
10 | public typealias SetUpdateSource<Element: Hashable> = AnySource<Update<SetChange<Element>>>
11 |
12 | public protocol ObservableSetType: ObservableType where Change == SetChange<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:33:36: error: type 'Self.Element' does not conform to protocol 'Hashable'
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:34:38: error: type 'Self.Element' does not conform to protocol 'Hashable'
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
35 |
36 | public var isEmpty: Bool { return count == 0 }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:38:54: error: type 'Self.Element' does not conform to protocol 'Hashable'
36 | public var isEmpty: Bool { return count == 0 }
37 |
38 | internal var valueUpdates: AnySource<ValueUpdate<Set<Element>>> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
39 | var value = self.value
40 | return self.updates.map { event in
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:68:34: error: type 'Self.Element' does not conform to protocol 'Hashable'
66 | }
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
69 | return AnyObservableSet(box: ObservableSetBox(self))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:159:60: error: type 'Contents.Element' does not conform to protocol 'Hashable'
157 | }
158 |
159 | final class ObservableSetBox<Contents: ObservableSetType>: _AbstractObservableSet<Contents.Element> {
| `- error: type 'Contents.Element' does not conform to protocol 'Hashable'
160 | typealias Element = Contents.Element
161 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:170:25: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
168 | override var isBuffered: Bool { return contents.isBuffered }
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:171:19: error: method does not override any method from its superclass
118 | open var isBuffered: Bool { return false }
119 | open var count: Int { return value.count }
120 | open func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- note: potential overridden instance method 'contains' here
121 | open func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
122 | open func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
:
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
| `- error: method does not override any method from its superclass
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:172:38: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:173:40: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:175:19: error: method does not override any method from its superclass
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
176 | contents.add(sink)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:180:19: error: method does not override any method from its superclass
178 |
179 | @discardableResult
180 | override func remove<Sink: SinkType>(_ sink: Sink) -> Sink where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
181 | return contents.remove(sink)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:185:57: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
183 |
184 | override var observableCount: AnyObservableValue<Int> { return contents.observableCount }
185 | override var anyObservableValue: AnyObservableValue<Set<Element>> { return contents.anyObservableValue }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:59: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:42: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:220:43: error: type 'Self.Element' does not conform to protocol 'Hashable'
218 | }
219 |
220 | public static func emptyConstant() -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
221 | return constant([])
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: missing argument label 'where:' in call
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: missing argument label 'where:' in call
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:43:23: error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
41 | event.map { change in
42 | let old = value
43 | value.apply(change)
| `- error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
44 | return ValueChange(from: old, to: value)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:70:1: note: where 'Element' = 'Self.Element'
68 | }
69 |
70 | extension Set {
| `- note: where 'Element' = 'Self.Element'
71 | public mutating func apply(_ change: SetChange<Element>) {
72 | self.subtract(change.removed)
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:54:45: error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
52 | update.map { change in
53 | let old = count
54 | count += numericCast(change.inserted.count - change.removed.count)
| `- error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
55 | return .init(from: old, to: count)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Self.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Self.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:69:38: error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
69 | return AnyObservableSet(box: ObservableSetBox(self))
| `- error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableValue.swift:179:5: warning: 'public' modifier is redundant for static method declared in a public extension
177 | public extension ObservableValueType {
178 | /// Creates a constant observable wrapping the given value. The returned observable is not modifiable and it will not ever send updates.
179 | public static func constant(_ value: Value) -> AnyObservableValue<Value> {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
180 | return ConstantObservable(value).anyObservableValue
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/RefList.swift:83:47: warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
81 | }
82 |
83 | internal subscript(bounds: Range<Int>) -> MutableRangeReplaceableRandomAccessSlice<RefList> {
| |- warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
| `- note: use 'Slice' instead
84 | get {
85 | return .init(base: self, bounds: bounds)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[122/128] Compiling GlueKit ObservableValue.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:30: error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Input.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Input.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: missing argument label 'where:' in call
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: missing argument label 'where:' in call
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:15:22: error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
15 | typealias Base = Set<Element>
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
16 |
17 | var isBuffered: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:19:16: error: type 'Self.Element' does not conform to protocol 'Hashable'
17 | var isBuffered: Bool { get }
18 | var count: Int { get }
19 | var value: Set<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:21:29: error: type 'Self.Element' does not conform to protocol 'Hashable'
19 | var value: Set<Element> { get }
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
22 | func isSuperset(of other: Set<Element>) -> Bool
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:22:31: error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
22 | func isSuperset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
23 |
24 | var observableCount: AnyObservableValue<Int> { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:26:27: error: type 'Self.Element' does not conform to protocol 'Hashable'
24 | var observableCount: AnyObservableValue<Int> { get }
25 | var anyObservableValue: AnyObservableValue<Base> { get }
26 | var anyObservableSet: AnyObservableSet<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:12:67: error: type 'Self.Element' does not conform to protocol 'Hashable'
10 | public typealias SetUpdateSource<Element: Hashable> = AnySource<Update<SetChange<Element>>>
11 |
12 | public protocol ObservableSetType: ObservableType where Change == SetChange<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:33:36: error: type 'Self.Element' does not conform to protocol 'Hashable'
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:34:38: error: type 'Self.Element' does not conform to protocol 'Hashable'
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
35 |
36 | public var isEmpty: Bool { return count == 0 }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:38:54: error: type 'Self.Element' does not conform to protocol 'Hashable'
36 | public var isEmpty: Bool { return count == 0 }
37 |
38 | internal var valueUpdates: AnySource<ValueUpdate<Set<Element>>> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
39 | var value = self.value
40 | return self.updates.map { event in
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:68:34: error: type 'Self.Element' does not conform to protocol 'Hashable'
66 | }
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
69 | return AnyObservableSet(box: ObservableSetBox(self))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:159:60: error: type 'Contents.Element' does not conform to protocol 'Hashable'
157 | }
158 |
159 | final class ObservableSetBox<Contents: ObservableSetType>: _AbstractObservableSet<Contents.Element> {
| `- error: type 'Contents.Element' does not conform to protocol 'Hashable'
160 | typealias Element = Contents.Element
161 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:170:25: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
168 | override var isBuffered: Bool { return contents.isBuffered }
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:171:19: error: method does not override any method from its superclass
118 | open var isBuffered: Bool { return false }
119 | open var count: Int { return value.count }
120 | open func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- note: potential overridden instance method 'contains' here
121 | open func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
122 | open func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
:
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
| `- error: method does not override any method from its superclass
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:172:38: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:173:40: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:175:19: error: method does not override any method from its superclass
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
176 | contents.add(sink)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:180:19: error: method does not override any method from its superclass
178 |
179 | @discardableResult
180 | override func remove<Sink: SinkType>(_ sink: Sink) -> Sink where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
181 | return contents.remove(sink)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:185:57: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
183 |
184 | override var observableCount: AnyObservableValue<Int> { return contents.observableCount }
185 | override var anyObservableValue: AnyObservableValue<Set<Element>> { return contents.anyObservableValue }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:59: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:42: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:220:43: error: type 'Self.Element' does not conform to protocol 'Hashable'
218 | }
219 |
220 | public static func emptyConstant() -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
221 | return constant([])
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: missing argument label 'where:' in call
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: missing argument label 'where:' in call
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:43:23: error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
41 | event.map { change in
42 | let old = value
43 | value.apply(change)
| `- error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
44 | return ValueChange(from: old, to: value)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:70:1: note: where 'Element' = 'Self.Element'
68 | }
69 |
70 | extension Set {
| `- note: where 'Element' = 'Self.Element'
71 | public mutating func apply(_ change: SetChange<Element>) {
72 | self.subtract(change.removed)
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:54:45: error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
52 | update.map { change in
53 | let old = count
54 | count += numericCast(change.inserted.count - change.removed.count)
| `- error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
55 | return .init(from: old, to: count)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Self.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Self.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:69:38: error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
69 | return AnyObservableSet(box: ObservableSetBox(self))
| `- error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableValue.swift:179:5: warning: 'public' modifier is redundant for static method declared in a public extension
177 | public extension ObservableValueType {
178 | /// Creates a constant observable wrapping the given value. The returned observable is not modifiable and it will not ever send updates.
179 | public static func constant(_ value: Value) -> AnyObservableValue<Value> {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
180 | return ConstantObservable(value).anyObservableValue
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/RefList.swift:83:47: warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
81 | }
82 |
83 | internal subscript(bounds: Range<Int>) -> MutableRangeReplaceableRandomAccessSlice<RefList> {
| |- warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
| `- note: use 'Slice' instead
84 | get {
85 | return .init(base: self, bounds: bounds)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[123/128] Compiling GlueKit OwnedSink.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:30: error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Input.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Input.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: missing argument label 'where:' in call
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: missing argument label 'where:' in call
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:15:22: error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
15 | typealias Base = Set<Element>
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
16 |
17 | var isBuffered: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:19:16: error: type 'Self.Element' does not conform to protocol 'Hashable'
17 | var isBuffered: Bool { get }
18 | var count: Int { get }
19 | var value: Set<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:21:29: error: type 'Self.Element' does not conform to protocol 'Hashable'
19 | var value: Set<Element> { get }
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
22 | func isSuperset(of other: Set<Element>) -> Bool
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:22:31: error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
22 | func isSuperset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
23 |
24 | var observableCount: AnyObservableValue<Int> { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:26:27: error: type 'Self.Element' does not conform to protocol 'Hashable'
24 | var observableCount: AnyObservableValue<Int> { get }
25 | var anyObservableValue: AnyObservableValue<Base> { get }
26 | var anyObservableSet: AnyObservableSet<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:12:67: error: type 'Self.Element' does not conform to protocol 'Hashable'
10 | public typealias SetUpdateSource<Element: Hashable> = AnySource<Update<SetChange<Element>>>
11 |
12 | public protocol ObservableSetType: ObservableType where Change == SetChange<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:33:36: error: type 'Self.Element' does not conform to protocol 'Hashable'
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:34:38: error: type 'Self.Element' does not conform to protocol 'Hashable'
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
35 |
36 | public var isEmpty: Bool { return count == 0 }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:38:54: error: type 'Self.Element' does not conform to protocol 'Hashable'
36 | public var isEmpty: Bool { return count == 0 }
37 |
38 | internal var valueUpdates: AnySource<ValueUpdate<Set<Element>>> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
39 | var value = self.value
40 | return self.updates.map { event in
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:68:34: error: type 'Self.Element' does not conform to protocol 'Hashable'
66 | }
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
69 | return AnyObservableSet(box: ObservableSetBox(self))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:159:60: error: type 'Contents.Element' does not conform to protocol 'Hashable'
157 | }
158 |
159 | final class ObservableSetBox<Contents: ObservableSetType>: _AbstractObservableSet<Contents.Element> {
| `- error: type 'Contents.Element' does not conform to protocol 'Hashable'
160 | typealias Element = Contents.Element
161 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:170:25: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
168 | override var isBuffered: Bool { return contents.isBuffered }
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:171:19: error: method does not override any method from its superclass
118 | open var isBuffered: Bool { return false }
119 | open var count: Int { return value.count }
120 | open func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- note: potential overridden instance method 'contains' here
121 | open func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
122 | open func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
:
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
| `- error: method does not override any method from its superclass
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:172:38: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:173:40: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:175:19: error: method does not override any method from its superclass
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
176 | contents.add(sink)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:180:19: error: method does not override any method from its superclass
178 |
179 | @discardableResult
180 | override func remove<Sink: SinkType>(_ sink: Sink) -> Sink where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
181 | return contents.remove(sink)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:185:57: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
183 |
184 | override var observableCount: AnyObservableValue<Int> { return contents.observableCount }
185 | override var anyObservableValue: AnyObservableValue<Set<Element>> { return contents.anyObservableValue }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:59: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:42: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:220:43: error: type 'Self.Element' does not conform to protocol 'Hashable'
218 | }
219 |
220 | public static func emptyConstant() -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
221 | return constant([])
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: missing argument label 'where:' in call
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: missing argument label 'where:' in call
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:43:23: error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
41 | event.map { change in
42 | let old = value
43 | value.apply(change)
| `- error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
44 | return ValueChange(from: old, to: value)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:70:1: note: where 'Element' = 'Self.Element'
68 | }
69 |
70 | extension Set {
| `- note: where 'Element' = 'Self.Element'
71 | public mutating func apply(_ change: SetChange<Element>) {
72 | self.subtract(change.removed)
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:54:45: error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
52 | update.map { change in
53 | let old = count
54 | count += numericCast(change.inserted.count - change.removed.count)
| `- error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
55 | return .init(from: old, to: count)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Self.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Self.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:69:38: error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
69 | return AnyObservableSet(box: ObservableSetBox(self))
| `- error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableValue.swift:179:5: warning: 'public' modifier is redundant for static method declared in a public extension
177 | public extension ObservableValueType {
178 | /// Creates a constant observable wrapping the given value. The returned observable is not modifiable and it will not ever send updates.
179 | public static func constant(_ value: Value) -> AnyObservableValue<Value> {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
180 | return ConstantObservable(value).anyObservableValue
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/RefList.swift:83:47: warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
81 | }
82 |
83 | internal subscript(bounds: Range<Int>) -> MutableRangeReplaceableRandomAccessSlice<RefList> {
| |- warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
| `- note: use 'Slice' instead
84 | get {
85 | return .init(base: self, bounds: bounds)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[124/128] Compiling GlueKit RefList.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:30: error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Input.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Input.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: missing argument label 'where:' in call
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: missing argument label 'where:' in call
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:15:22: error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
15 | typealias Base = Set<Element>
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
16 |
17 | var isBuffered: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:19:16: error: type 'Self.Element' does not conform to protocol 'Hashable'
17 | var isBuffered: Bool { get }
18 | var count: Int { get }
19 | var value: Set<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:21:29: error: type 'Self.Element' does not conform to protocol 'Hashable'
19 | var value: Set<Element> { get }
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
22 | func isSuperset(of other: Set<Element>) -> Bool
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:22:31: error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
22 | func isSuperset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
23 |
24 | var observableCount: AnyObservableValue<Int> { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:26:27: error: type 'Self.Element' does not conform to protocol 'Hashable'
24 | var observableCount: AnyObservableValue<Int> { get }
25 | var anyObservableValue: AnyObservableValue<Base> { get }
26 | var anyObservableSet: AnyObservableSet<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:12:67: error: type 'Self.Element' does not conform to protocol 'Hashable'
10 | public typealias SetUpdateSource<Element: Hashable> = AnySource<Update<SetChange<Element>>>
11 |
12 | public protocol ObservableSetType: ObservableType where Change == SetChange<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:33:36: error: type 'Self.Element' does not conform to protocol 'Hashable'
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:34:38: error: type 'Self.Element' does not conform to protocol 'Hashable'
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
35 |
36 | public var isEmpty: Bool { return count == 0 }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:38:54: error: type 'Self.Element' does not conform to protocol 'Hashable'
36 | public var isEmpty: Bool { return count == 0 }
37 |
38 | internal var valueUpdates: AnySource<ValueUpdate<Set<Element>>> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
39 | var value = self.value
40 | return self.updates.map { event in
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:68:34: error: type 'Self.Element' does not conform to protocol 'Hashable'
66 | }
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
69 | return AnyObservableSet(box: ObservableSetBox(self))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:159:60: error: type 'Contents.Element' does not conform to protocol 'Hashable'
157 | }
158 |
159 | final class ObservableSetBox<Contents: ObservableSetType>: _AbstractObservableSet<Contents.Element> {
| `- error: type 'Contents.Element' does not conform to protocol 'Hashable'
160 | typealias Element = Contents.Element
161 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:170:25: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
168 | override var isBuffered: Bool { return contents.isBuffered }
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:171:19: error: method does not override any method from its superclass
118 | open var isBuffered: Bool { return false }
119 | open var count: Int { return value.count }
120 | open func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- note: potential overridden instance method 'contains' here
121 | open func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
122 | open func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
:
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
| `- error: method does not override any method from its superclass
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:172:38: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:173:40: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:175:19: error: method does not override any method from its superclass
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
176 | contents.add(sink)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:180:19: error: method does not override any method from its superclass
178 |
179 | @discardableResult
180 | override func remove<Sink: SinkType>(_ sink: Sink) -> Sink where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
181 | return contents.remove(sink)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:185:57: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
183 |
184 | override var observableCount: AnyObservableValue<Int> { return contents.observableCount }
185 | override var anyObservableValue: AnyObservableValue<Set<Element>> { return contents.anyObservableValue }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:59: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:42: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:220:43: error: type 'Self.Element' does not conform to protocol 'Hashable'
218 | }
219 |
220 | public static func emptyConstant() -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
221 | return constant([])
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: missing argument label 'where:' in call
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: missing argument label 'where:' in call
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:43:23: error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
41 | event.map { change in
42 | let old = value
43 | value.apply(change)
| `- error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
44 | return ValueChange(from: old, to: value)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:70:1: note: where 'Element' = 'Self.Element'
68 | }
69 |
70 | extension Set {
| `- note: where 'Element' = 'Self.Element'
71 | public mutating func apply(_ change: SetChange<Element>) {
72 | self.subtract(change.removed)
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:54:45: error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
52 | update.map { change in
53 | let old = count
54 | count += numericCast(change.inserted.count - change.removed.count)
| `- error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
55 | return .init(from: old, to: count)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Self.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Self.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:69:38: error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
69 | return AnyObservableSet(box: ObservableSetBox(self))
| `- error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableValue.swift:179:5: warning: 'public' modifier is redundant for static method declared in a public extension
177 | public extension ObservableValueType {
178 | /// Creates a constant observable wrapping the given value. The returned observable is not modifiable and it will not ever send updates.
179 | public static func constant(_ value: Value) -> AnyObservableValue<Value> {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
180 | return ConstantObservable(value).anyObservableValue
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/RefList.swift:83:47: warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
81 | }
82 |
83 | internal subscript(bounds: Range<Int>) -> MutableRangeReplaceableRandomAccessSlice<RefList> {
| |- warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
| `- note: use 'Slice' instead
84 | get {
85 | return .init(base: self, bounds: bounds)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[125/128] Compiling GlueKit Reference.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:30: error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Input.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Input.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: missing argument label 'where:' in call
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: missing argument label 'where:' in call
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:15:22: error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
15 | typealias Base = Set<Element>
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
16 |
17 | var isBuffered: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:19:16: error: type 'Self.Element' does not conform to protocol 'Hashable'
17 | var isBuffered: Bool { get }
18 | var count: Int { get }
19 | var value: Set<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:21:29: error: type 'Self.Element' does not conform to protocol 'Hashable'
19 | var value: Set<Element> { get }
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
22 | func isSuperset(of other: Set<Element>) -> Bool
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:22:31: error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
22 | func isSuperset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
23 |
24 | var observableCount: AnyObservableValue<Int> { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:26:27: error: type 'Self.Element' does not conform to protocol 'Hashable'
24 | var observableCount: AnyObservableValue<Int> { get }
25 | var anyObservableValue: AnyObservableValue<Base> { get }
26 | var anyObservableSet: AnyObservableSet<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:12:67: error: type 'Self.Element' does not conform to protocol 'Hashable'
10 | public typealias SetUpdateSource<Element: Hashable> = AnySource<Update<SetChange<Element>>>
11 |
12 | public protocol ObservableSetType: ObservableType where Change == SetChange<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:33:36: error: type 'Self.Element' does not conform to protocol 'Hashable'
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:34:38: error: type 'Self.Element' does not conform to protocol 'Hashable'
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
35 |
36 | public var isEmpty: Bool { return count == 0 }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:38:54: error: type 'Self.Element' does not conform to protocol 'Hashable'
36 | public var isEmpty: Bool { return count == 0 }
37 |
38 | internal var valueUpdates: AnySource<ValueUpdate<Set<Element>>> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
39 | var value = self.value
40 | return self.updates.map { event in
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:68:34: error: type 'Self.Element' does not conform to protocol 'Hashable'
66 | }
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
69 | return AnyObservableSet(box: ObservableSetBox(self))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:159:60: error: type 'Contents.Element' does not conform to protocol 'Hashable'
157 | }
158 |
159 | final class ObservableSetBox<Contents: ObservableSetType>: _AbstractObservableSet<Contents.Element> {
| `- error: type 'Contents.Element' does not conform to protocol 'Hashable'
160 | typealias Element = Contents.Element
161 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:170:25: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
168 | override var isBuffered: Bool { return contents.isBuffered }
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:171:19: error: method does not override any method from its superclass
118 | open var isBuffered: Bool { return false }
119 | open var count: Int { return value.count }
120 | open func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- note: potential overridden instance method 'contains' here
121 | open func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
122 | open func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
:
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
| `- error: method does not override any method from its superclass
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:172:38: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:173:40: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:175:19: error: method does not override any method from its superclass
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
176 | contents.add(sink)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:180:19: error: method does not override any method from its superclass
178 |
179 | @discardableResult
180 | override func remove<Sink: SinkType>(_ sink: Sink) -> Sink where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
181 | return contents.remove(sink)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:185:57: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
183 |
184 | override var observableCount: AnyObservableValue<Int> { return contents.observableCount }
185 | override var anyObservableValue: AnyObservableValue<Set<Element>> { return contents.anyObservableValue }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:59: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:42: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:220:43: error: type 'Self.Element' does not conform to protocol 'Hashable'
218 | }
219 |
220 | public static func emptyConstant() -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
221 | return constant([])
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: missing argument label 'where:' in call
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: missing argument label 'where:' in call
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:43:23: error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
41 | event.map { change in
42 | let old = value
43 | value.apply(change)
| `- error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
44 | return ValueChange(from: old, to: value)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:70:1: note: where 'Element' = 'Self.Element'
68 | }
69 |
70 | extension Set {
| `- note: where 'Element' = 'Self.Element'
71 | public mutating func apply(_ change: SetChange<Element>) {
72 | self.subtract(change.removed)
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:54:45: error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
52 | update.map { change in
53 | let old = count
54 | count += numericCast(change.inserted.count - change.removed.count)
| `- error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
55 | return .init(from: old, to: count)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Self.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Self.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:69:38: error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
69 | return AnyObservableSet(box: ObservableSetBox(self))
| `- error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableValue.swift:179:5: warning: 'public' modifier is redundant for static method declared in a public extension
177 | public extension ObservableValueType {
178 | /// Creates a constant observable wrapping the given value. The returned observable is not modifiable and it will not ever send updates.
179 | public static func constant(_ value: Value) -> AnyObservableValue<Value> {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
180 | return ConstantObservable(value).anyObservableValue
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/RefList.swift:83:47: warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
81 | }
82 |
83 | internal subscript(bounds: Range<Int>) -> MutableRangeReplaceableRandomAccessSlice<RefList> {
| |- warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
| `- note: use 'Slice' instead
84 | get {
85 | return .init(base: self, bounds: bounds)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[126/128] Compiling GlueKit SetChange.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:30: error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: generic struct 'SetChange' requires that 'Input.Element' conform to 'Hashable'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Input.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Input.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: missing argument label 'where:' in call
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: missing argument label 'where:' in call
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableContains.swift:25:47: error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
23 | self._updates = input.updates.flatMap { update in
24 | update.flatMap {
25 | let old = $0.removed.contains(member)
| `- error: cannot convert value of type 'Input.Element' to expected argument type '(Input.Element) throws -> Bool'
26 | let new = $0.inserted.contains(member)
27 | if old == new {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:15:22: error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
15 | typealias Base = Set<Element>
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
16 |
17 | var isBuffered: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:19:16: error: type 'Self.Element' does not conform to protocol 'Hashable'
17 | var isBuffered: Bool { get }
18 | var count: Int { get }
19 | var value: Set<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:21:29: error: type 'Self.Element' does not conform to protocol 'Hashable'
19 | var value: Set<Element> { get }
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
22 | func isSuperset(of other: Set<Element>) -> Bool
23 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:22:31: error: type 'Self.Element' does not conform to protocol 'Hashable'
20 | func contains(_ member: Element) -> Bool
21 | func isSubset(of other: Set<Element>) -> Bool
22 | func isSuperset(of other: Set<Element>) -> Bool
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
23 |
24 | var observableCount: AnyObservableValue<Int> { get }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:26:27: error: type 'Self.Element' does not conform to protocol 'Hashable'
24 | var observableCount: AnyObservableValue<Int> { get }
25 | var anyObservableValue: AnyObservableValue<Base> { get }
26 | var anyObservableSet: AnyObservableSet<Element> { get }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:12:67: error: type 'Self.Element' does not conform to protocol 'Hashable'
10 | public typealias SetUpdateSource<Element: Hashable> = AnySource<Update<SetChange<Element>>>
11 |
12 | public protocol ObservableSetType: ObservableType where Change == SetChange<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
13 | associatedtype Element
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:33:36: error: type 'Self.Element' does not conform to protocol 'Hashable'
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
35 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:34:38: error: type 'Self.Element' does not conform to protocol 'Hashable'
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
35 |
36 | public var isEmpty: Bool { return count == 0 }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:38:54: error: type 'Self.Element' does not conform to protocol 'Hashable'
36 | public var isEmpty: Bool { return count == 0 }
37 |
38 | internal var valueUpdates: AnySource<ValueUpdate<Set<Element>>> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
39 | var value = self.value
40 | return self.updates.map { event in
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:68:34: error: type 'Self.Element' does not conform to protocol 'Hashable'
66 | }
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
69 | return AnyObservableSet(box: ObservableSetBox(self))
70 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:159:60: error: type 'Contents.Element' does not conform to protocol 'Hashable'
157 | }
158 |
159 | final class ObservableSetBox<Contents: ObservableSetType>: _AbstractObservableSet<Contents.Element> {
| `- error: type 'Contents.Element' does not conform to protocol 'Hashable'
160 | typealias Element = Contents.Element
161 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:170:25: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
168 | override var isBuffered: Bool { return contents.isBuffered }
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:171:19: error: method does not override any method from its superclass
118 | open var isBuffered: Bool { return false }
119 | open var count: Int { return value.count }
120 | open func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- note: potential overridden instance method 'contains' here
121 | open func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
122 | open func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
:
169 | override var count: Int { return contents.count }
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
| `- error: method does not override any method from its superclass
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:172:38: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
170 | override var value: Set<Element> { return contents.value }
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:173:40: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
171 | override func contains(_ member: Element) -> Bool { return contents.contains(member) }
172 | override func isSubset(of other: Set<Element>) -> Bool { return contents.isSubset(of: other) }
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:175:19: error: method does not override any method from its superclass
173 | override func isSuperset(of other: Set<Element>) -> Bool { return contents.isSuperset(of: other) }
174 |
175 | override func add<Sink: SinkType>(_ sink: Sink) where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
176 | contents.add(sink)
177 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:180:19: error: method does not override any method from its superclass
178 |
179 | @discardableResult
180 | override func remove<Sink: SinkType>(_ sink: Sink) -> Sink where Sink.Value == Update<SetChange<Element>> {
| `- error: method does not override any method from its superclass
181 | return contents.remove(sink)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:185:57: error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
183 |
184 | override var observableCount: AnyObservableValue<Int> { return contents.observableCount }
185 | override var anyObservableValue: AnyObservableValue<Set<Element>> { return contents.anyObservableValue }
| `- error: type 'ObservableSetBox<Contents>.Element' (aka 'Contents.Element') does not conform to protocol 'Hashable'
186 | }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:59: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:216:42: error: type 'Self.Element' does not conform to protocol 'Hashable'
214 |
215 | extension ObservableSetType {
216 | public static func constant(_ value: Set<Element>) -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
217 | return ObservableConstantSet(value).anyObservableSet
218 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:220:43: error: type 'Self.Element' does not conform to protocol 'Hashable'
218 | }
219 |
220 | public static func emptyConstant() -> AnyObservableSet<Element> {
| `- error: type 'Self.Element' does not conform to protocol 'Hashable'
221 | return constant([])
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: missing argument label 'where:' in call
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: missing argument label 'where:' in call
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:32:77: error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
30 | public var isBuffered: Bool { return false }
31 | public var count: Int { return value.count }
32 | public func contains(_ member: Element) -> Bool { return value.contains(member) }
| `- error: cannot convert value of type 'Self.Element' to expected argument type '(Self.Element) throws -> Bool'
33 | public func isSubset(of other: Set<Element>) -> Bool { return value.isSubset(of: other) }
34 | public func isSuperset(of other: Set<Element>) -> Bool { return value.isSuperset(of: other) }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:43:23: error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
41 | event.map { change in
42 | let old = value
43 | value.apply(change)
| `- error: referencing instance method 'apply' on 'Set' requires that 'Self.Element' conform to 'Hashable'
44 | return ValueChange(from: old, to: value)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:70:1: note: where 'Element' = 'Self.Element'
68 | }
69 |
70 | extension Set {
| `- note: where 'Element' = 'Self.Element'
71 | public mutating func apply(_ change: SetChange<Element>) {
72 | self.subtract(change.removed)
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:54:45: error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
52 | update.map { change in
53 | let old = count
54 | count += numericCast(change.inserted.count - change.removed.count)
| `- error: generic struct 'SetChange' requires that 'Self.Element' conform to 'Hashable'
55 | return .init(from: old, to: count)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/SetChange.swift:9:15: note: where 'Element' = 'Self.Element'
7 | //
8 |
9 | public struct SetChange<Element: Hashable>: ChangeType {
| `- note: where 'Element' = 'Self.Element'
10 | public typealias Value = Set<Element>
11 |
/Users/admin/builder/spi-builder-workspace/Sources/ObservableSet.swift:69:38: error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
67 |
68 | public var anyObservableSet: AnyObservableSet<Element> {
69 | return AnyObservableSet(box: ObservableSetBox(self))
| `- error: cannot convert value of type 'ObservableSetBox<Self>' to expected argument type '_AbstractObservableSet<Element>'
70 | }
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/ObservableValue.swift:179:5: warning: 'public' modifier is redundant for static method declared in a public extension
177 | public extension ObservableValueType {
178 | /// Creates a constant observable wrapping the given value. The returned observable is not modifiable and it will not ever send updates.
179 | public static func constant(_ value: Value) -> AnyObservableValue<Value> {
| `- warning: 'public' modifier is redundant for static method declared in a public extension
180 | return ConstantObservable(value).anyObservableValue
181 | }
/Users/admin/builder/spi-builder-workspace/Sources/RefList.swift:83:47: warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
81 | }
82 |
83 | internal subscript(bounds: Range<Int>) -> MutableRangeReplaceableRandomAccessSlice<RefList> {
| |- warning: 'MutableRangeReplaceableRandomAccessSlice' is deprecated: renamed to 'Slice' [#DeprecatedDeclaration]
| `- note: use 'Slice' instead
84 | get {
85 | return .init(base: self, bounds: bounds)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.3 macosSpm