Build Information
Failed to build Graphs, reference 0.4.4 (532860), with Swift 6.3 for Linux on 23 Apr 2026 09:01:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
| `- error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
136 | let source = edgeSources[edgeId]
137 | let destination = edgeDestinations[edgeId]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:139:30: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
137 | let destination = edgeDestinations[edgeId]
138 |
139 | if let sourceIndex = vertexIndex[source] {
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
140 | let startIndex = rowOffsets[sourceIndex]
141 | let endIndex = rowOffsets[sourceIndex + 1]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:152:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
150 | }
151 |
152 | incomingBuckets[destination]?.remove(edgeId)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
153 | alive.remove(edgeId)
154 | freeList.append(edgeId)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:152:39: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
150 | }
151 |
152 | incomingBuckets[destination]?.remove(edgeId)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
153 | alive.remove(edgeId)
154 | freeList.append(edgeId)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:153:15: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
151 |
152 | incomingBuckets[destination]?.remove(edgeId)
153 | alive.remove(edgeId)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
154 | freeList.append(edgeId)
155 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:3:1: error: cannot use generic struct 'OrderedSet' in an extension with public or '@usableFromInline' members; 'OrderedCollections' was not imported by this file
1 | import Collections
2 |
3 | extension EdgeStorage where Edges == OrderedSet<Edge> {
| `- error: cannot use generic struct 'OrderedSet' in an extension with public or '@usableFromInline' members; 'OrderedCollections' was not imported by this file
4 | @inlinable
5 | public func cacheInOutEdges() -> CacheInOutEdges<Self> {
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:41:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
39 |
40 | @usableFromInline
41 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
42 | @usableFromInline
43 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:41:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
39 |
40 | @usableFromInline
41 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
42 | @usableFromInline
43 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:43:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
41 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
42 | @usableFromInline
43 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
44 |
45 | /// Returns all outgoing edges from a vertex.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:43:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
41 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
42 | @usableFromInline
43 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
44 |
45 | /// Returns all outgoing edges from a vertex.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:50:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
48 | /// - Returns: A set of edges originating from the vertex
49 | @inlinable
50 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
51 | _outgoingEdges[vertex] ?? []
52 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:68:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | /// - Returns: A set of edges terminating at the vertex
67 | @inlinable
68 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 | _incomingEdges[vertex] ?? []
70 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:15:15: error: cannot use generic struct 'OrderedSet' here; 'OrderedCollections' was not imported by this file
13 | /// O(1) access to edge lists, which is especially useful for algorithms that frequently
14 | /// query the incidence structure of a graph.
15 | public struct CacheInOutEdges<
| `- error: cannot use generic struct 'OrderedSet' here; 'OrderedCollections' was not imported by this file
16 | Base: EdgeStorage
17 | >: EdgeStorage where
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:15:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
13 | /// O(1) access to edge lists, which is especially useful for algorithms that frequently
14 | /// query the incidence structure of a graph.
15 | public struct CacheInOutEdges<
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<Base.Edge>')
16 | Base: EdgeStorage
17 | >: EdgeStorage where
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:32:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
30 | self.base = base
31 | // Hydrate caches for pre-populated storages
32 | for edge in base.edges() {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:32:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
30 | self.base = base
31 | // Hydrate caches for pre-populated storages
32 | for edge in base.edges() {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:34:17: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 | for edge in base.edges() {
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
36 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:34:49: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 | for edge in base.edges() {
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
36 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:34:53: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 | for edge in base.edges() {
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
36 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:35:17: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | }
37 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:35:54: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | }
37 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:35:58: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | }
37 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:51:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
49 | @inlinable
50 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
51 | _outgoingEdges[vertex] ?? []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
52 | }
53 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:51:35: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
49 | @inlinable
50 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
51 | _outgoingEdges[vertex] ?? []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
52 | }
53 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:60:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | @inlinable
59 | public func outDegree(of vertex: Vertex) -> Int {
60 | outgoingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
61 | }
62 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:69:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
67 | @inlinable
68 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
69 | _incomingEdges[vertex] ?? []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
70 | }
71 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:69:35: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
67 | @inlinable
68 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
69 | _incomingEdges[vertex] ?? []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
70 | }
71 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:78:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
76 | @inlinable
77 | public func inDegree(of vertex: Vertex) -> Int {
78 | incomingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
79 | }
80 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:90:9: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
88 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
92 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:90:41: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
88 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
92 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:90:45: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
88 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
92 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:91:9: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | return edge
93 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:91:46: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | return edge
93 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:91:50: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | return edge
93 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:101:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
99 | public mutating func remove(edge: Edge) {
100 | if let (source, destination) = endpoints(of: edge) {
101 | _outgoingEdges[source]?.remove(edge)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
102 | _incomingEdges[destination]?.remove(edge)
103 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:101:37: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
99 | public mutating func remove(edge: Edge) {
100 | if let (source, destination) = endpoints(of: edge) {
101 | _outgoingEdges[source]?.remove(edge)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
102 | _incomingEdges[destination]?.remove(edge)
103 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:102:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
100 | if let (source, destination) = endpoints(of: edge) {
101 | _outgoingEdges[source]?.remove(edge)
102 | _incomingEdges[destination]?.remove(edge)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | }
104 | base.remove(edge: edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:102:42: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
100 | if let (source, destination) = endpoints(of: edge) {
101 | _outgoingEdges[source]?.remove(edge)
102 | _incomingEdges[destination]?.remove(edge)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | }
104 | base.remove(edge: edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:25:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
23 |
24 | @usableFromInline
25 | var _edges: OrderedDictionary<Edge, (source: Vertex, destination: Vertex)> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
26 | @usableFromInline
27 | var _nextId: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:37:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | /// Returns all edges in storage.
36 | @inlinable
37 | public func edges() -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
38 | _edges.keys
39 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:55:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
53 | /// - Returns: A set of edges originating from the vertex
54 | @inlinable
55 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
56 | _edges.filter { $0.value.source == vertex }.keys
57 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:73:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
71 | /// - Returns: A set of edges terminating at the vertex
72 | @inlinable
73 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
74 | _edges.filter { $0.value.destination == vertex }.keys
75 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:15:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
13 | /// efficient lookup and iteration. It's commonly used as the default
14 | /// edge storage for adjacency list graphs.
15 | public struct OrderedEdgeStorage<Vertex: Hashable>: EdgeStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<OrderedEdgeStorage<Vertex>.Edge>')
16 | /// An edge in the ordered edge storage.
17 | public struct Edge: Identifiable, Hashable {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:32:16: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
30 | @inlinable
31 | public var edgeCount: Int {
32 | _edges.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
33 | }
34 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:38:16: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | @inlinable
37 | public func edges() -> OrderedSet<Edge> {
38 | _edges.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | }
40 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:47:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
45 | @inlinable
46 | public func endpoints(of edge: Edge) -> (source: Vertex, destination: Vertex)? {
47 | _edges[edge]
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
48 | }
49 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:56:16: error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 | @inlinable
55 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
56 | _edges.filter { $0.value.source == vertex }.keys
| `- error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | }
58 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:56:53: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 | @inlinable
55 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
56 | _edges.filter { $0.value.source == vertex }.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | }
58 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:65:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
63 | @inlinable
64 | public func outDegree(of vertex: Vertex) -> Int {
65 | outgoingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | }
67 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:74:16: error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | @inlinable
73 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
74 | _edges.filter { $0.value.destination == vertex }.keys
| `- error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 | }
76 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:74:58: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | @inlinable
73 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
74 | _edges.filter { $0.value.destination == vertex }.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 | }
76 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:83:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
81 | @inlinable
82 | public func inDegree(of vertex: Vertex) -> Int {
83 | incomingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
84 | }
85 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:96:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 | let edge = Edge(_id: _nextId)
95 | _nextId &+= 1
96 | _edges[edge] = (source, destination)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
97 | return edge
98 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:105:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | @inlinable
104 | public mutating func remove(edge: Edge) {
105 | _edges[edge] = nil
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
106 | }
107 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:26:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
24 |
25 | @usableFromInline
26 | var _vertices: OrderedSet<Vertex> = []
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
27 | @usableFromInline
28 | var _nextId: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:38:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | /// Returns all vertices in storage.
37 | @inlinable
38 | public func vertices() -> OrderedSet<Vertex> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | _vertices
40 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:15:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
13 | /// efficient lookup and iteration. It's commonly used as the default
14 | /// vertex storage for adjacency list graphs.
15 | public struct OrderedVertexStorage: VertexStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Vertices' (inferred as 'OrderedSet<OrderedVertexStorage.Vertex>')
16 | /// A vertex in the ordered vertex storage.
17 | public struct Vertex: Identifiable, Hashable {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:33:19: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
31 | @inlinable
32 | public var vertexCount: Int {
33 | _vertices.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
34 | }
35 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:48:19: error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
46 | @inlinable
47 | public func contains(_ vertex: Vertex) -> Bool {
48 | _vertices.contains(vertex)
| `- error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
49 | }
50 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:58:19: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
56 | let vertex = Vertex(_id: _nextId)
57 | _nextId &+= 1
58 | _vertices.updateOrAppend(vertex)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
59 | return vertex
60 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:67:19: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
65 | @inlinable
66 | public mutating func remove(vertex: Vertex) {
67 | _vertices.remove(vertex)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
68 | }
69 |
[721/721] Compiling Graphs PropertyValues.swift
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyList.swift:96:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
94 | extension AdjacencyList: VertexListGraph {}
95 | extension AdjacencyList: EdgeListGraph {}
96 | extension AdjacencyList: AdjacencyGraph {}
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.AdjacentVertices' (inferred as 'OrderedSet<VertexStore.Vertex>')
97 | extension AdjacencyList: MutableGraph {}
98 | extension AdjacencyList: PropertyGraph {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:16:18: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
14 | internal var matrix: [[Bool]] = []
15 | @usableFromInline
16 | internal var verticesStore: OrderedSet<Vertex> = []
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
17 | @usableFromInline
18 | internal var edgesStore: OrderedDictionary<Edge, (source: Vertex, destination: Vertex)> = [:]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:18:18: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
16 | internal var verticesStore: OrderedSet<Vertex> = []
17 | @usableFromInline
18 | internal var edgesStore: OrderedDictionary<Edge, (source: Vertex, destination: Vertex)> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
19 | // Performance optimization: O(1) edge lookup by (source, destination) pair
20 | @usableFromInline
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:68:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | extension AdjacencyMatrix: VertexListGraph {
67 | @inlinable
68 | public func vertices() -> OrderedSet<Vertex> { verticesStore }
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 |
70 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:66:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
64 | }
65 |
66 | extension AdjacencyMatrix: VertexListGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Vertices' (inferred as 'OrderedSet<AdjacencyMatrix.Vertex>')
67 | @inlinable
68 | public func vertices() -> OrderedSet<Vertex> { verticesStore }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:76:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
74 | extension AdjacencyMatrix: EdgeListGraph {
75 | @inlinable
76 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
77 |
78 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:74:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
72 | }
73 |
74 | extension AdjacencyMatrix: EdgeListGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<AdjacencyMatrix.Edge>')
75 | @inlinable
76 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:84:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
82 | extension AdjacencyMatrix: IncidenceGraph {
83 | @inlinable
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
85 | guard let i = index(of: vertex) else { return [] }
86 | var result: OrderedSet<Edge> = []
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:82:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
80 | }
81 |
82 | extension AdjacencyMatrix: IncidenceGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.OutgoingEdges' (inferred as 'OrderedSet<AdjacencyMatrix.Edge>')
83 | @inlinable
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:107:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
105 | extension AdjacencyMatrix: BidirectionalGraph {
106 | @inlinable
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
108 | guard let j = index(of: vertex) else { return [] }
109 | var result: OrderedSet<Edge> = []
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:105:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
103 | }
104 |
105 | extension AdjacencyMatrix: BidirectionalGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.IncomingEdges' (inferred as 'OrderedSet<AdjacencyMatrix.Edge>')
106 | @inlinable
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:225:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
223 | extension AdjacencyMatrix: AdjacencyGraph {
224 | @inlinable
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
226 | guard let idx = index(of: vertex) else { return [] }
227 | var result: OrderedSet<Vertex> = []
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:223:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
221 | }
222 |
223 | extension AdjacencyMatrix: AdjacencyGraph {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.AdjacentVertices' (inferred as 'OrderedSet<AdjacencyMatrix.Vertex>')
224 | @inlinable
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:71:49: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 |
70 | @inlinable
71 | public var vertexCount: Int { verticesStore.count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | }
73 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:76:58: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
74 | extension AdjacencyMatrix: EdgeListGraph {
75 | @inlinable
76 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
77 |
78 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:79:44: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
77 |
78 | @inlinable
79 | public var edgeCount: Int { edgesStore.count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
80 | }
81 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:85:55: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
83 | @inlinable
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
85 | guard let i = index(of: vertex) else { return [] }
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
86 | var result: OrderedSet<Edge> = []
87 | for j in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:86:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
85 | guard let i = index(of: vertex) else { return [] }
86 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:86:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
84 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
85 | guard let i = index(of: vertex) else { return [] }
86 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:89:51: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
89 | if let e = edge(from: vertex, to: verticesStore[j]) { result.updateOrAppend(e) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
90 | }
91 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:89:78: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
87 | for j in 0 ..< matrix.count {
88 | if matrix[i][j] {
89 | if let e = edge(from: vertex, to: verticesStore[j]) { result.updateOrAppend(e) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
90 | }
91 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:96:52: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 |
95 | @inlinable
96 | public func source(of edge: Edge) -> Vertex? { edgesStore[edge]?.source }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
97 |
98 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:99:57: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
97 |
98 | @inlinable
99 | public func destination(of edge: Edge) -> Vertex? { edgesStore[edge]?.destination }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
100 |
101 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:102:81: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
100 |
101 | @inlinable
102 | public func outDegree(of vertex: Vertex) -> Int { outgoingEdges(of: vertex).count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | }
104 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:108:55: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
106 | @inlinable
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
108 | guard let j = index(of: vertex) else { return [] }
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
109 | var result: OrderedSet<Edge> = []
110 | for i in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:109:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
108 | guard let j = index(of: vertex) else { return [] }
109 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:109:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
107 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
108 | guard let j = index(of: vertex) else { return [] }
109 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:112:39: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
112 | if let e = edge(from: verticesStore[i], to: vertex) { result.updateOrAppend(e) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
113 | }
114 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:112:78: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
110 | for i in 0 ..< matrix.count {
111 | if matrix[i][j] {
112 | if let e = edge(from: verticesStore[i], to: vertex) { result.updateOrAppend(e) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
113 | }
114 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:119:80: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
117 |
118 | @inlinable
119 | public func inDegree(of vertex: Vertex) -> Int { incomingEdges(of: vertex).count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
120 | }
121 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:134:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
132 | let e = Edge(_id: nextEdgeId)
133 | nextEdgeId &+= 1
134 | edgesStore[e] = (source, destination)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
135 | // Update the O(1) lookup table
136 | edgeLookup[source, default: [:]][destination] = e
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:143:35: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
141 | @inlinable
142 | public mutating func remove(edge: consuming Edge) {
143 | guard let ep = edgesStore.removeValue(forKey: edge) else { return }
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
144 | if let i = index(of: ep.source), let j = index(of: ep.destination) { matrix[i][j] = false }
145 | // Update the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:168:23: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
166 | let v = Vertex(_id: nextVertexId)
167 | nextVertexId &+= 1
168 | verticesStore.updateOrAppend(v)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
169 | // Grow matrix
170 | let n = verticesStore.count
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:170:31: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
168 | verticesStore.updateOrAppend(v)
169 | // Grow matrix
170 | let n = verticesStore.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
171 | for i in 0 ..< matrix.count { matrix[i].append(false) }
172 | matrix.append(Array(repeating: false, count: n))
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:181:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
179 | guard let idx = index(of: vertex) else { return }
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
183 | // Clean up the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:181:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
179 | guard let idx = index(of: vertex) else { return }
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
183 | // Clean up the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:181:57: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
179 | guard let idx = index(of: vertex) else { return }
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
183 | // Clean up the O(1) lookup table
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:182:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
183 | // Clean up the O(1) lookup table
184 | edgeLookup[vertex] = nil
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:182:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
183 | // Clean up the O(1) lookup table
184 | edgeLookup[vertex] = nil
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:182:57: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
180 | // Remove incident edges
181 | for e in outgoingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
182 | for e in incomingEdges(of: vertex) { edgesStore.removeValue(forKey: e) }
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
183 | // Clean up the O(1) lookup table
184 | edgeLookup[vertex] = nil
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:196:23: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
194 | matrix.remove(at: idx)
195 | for i in 0 ..< matrix.count { matrix[i].remove(at: idx) }
196 | verticesStore.remove(vertex)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
197 | }
198 | #else
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:226:57: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
224 | @inlinable
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
226 | guard let idx = index(of: vertex) else { return [] }
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
227 | var result: OrderedSet<Vertex> = []
228 | // Outgoing neighbors: row scan
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:227:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
226 | guard let idx = index(of: vertex) else { return [] }
227 | var result: OrderedSet<Vertex> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:227:42: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
225 | public func adjacentVertices(of vertex: Vertex) -> OrderedSet<Vertex> {
226 | guard let idx = index(of: vertex) else { return [] }
227 | var result: OrderedSet<Vertex> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:230:40: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
230 | if matrix[idx][j] { result.updateOrAppend(verticesStore[j]) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
231 | }
232 | // Incoming neighbors: column scan
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:230:55: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
228 | // Outgoing neighbors: row scan
229 | for j in 0 ..< matrix.count {
230 | if matrix[idx][j] { result.updateOrAppend(verticesStore[j]) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
231 | }
232 | // Incoming neighbors: column scan
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:234:40: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
232 | // Incoming neighbors: column scan
233 | for i in 0 ..< matrix.count {
234 | if matrix[i][idx] { result.updateOrAppend(verticesStore[i]) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
235 | }
236 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/AdjacencyMatrix.swift:234:55: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
232 | // Incoming neighbors: column scan
233 | for i in 0 ..< matrix.count {
234 | if matrix[i][idx] { result.updateOrAppend(verticesStore[i]) }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
235 | }
236 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/BipartiteAdjacencyList.swift:97:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
95 | extension BipartiteAdjacencyList: EdgeListGraph {}
96 |
97 | extension BipartiteAdjacencyList: AdjacencyGraph {}
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.AdjacentVertices' (inferred as 'OrderedSet<VertexStore.Vertex>')
98 |
99 | extension BipartiteAdjacencyList: MutableGraph {}
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:59:16: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
57 |
58 | /// The allowed movement directions in the grid.
59 | public let allowedDirections: OrderedSet<GridDirection>
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
60 |
61 | /// Creates a new grid graph.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:68:12: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | /// - allowedDirections: The allowed movement directions (defaults to orthogonal)
67 | @inlinable
68 | public init(width: Int, height: Int, allowedDirections: OrderedSet<GridDirection> = .orthogonal) {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 | self.width = width
70 | self.height = height
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:141:13: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
139 | let height: Int
140 | @usableFromInline
141 | let directions: OrderedSet<GridDirection>
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
142 |
143 | @inlinable
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:144:16: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
142 |
143 | @inlinable
144 | public init(vertex: GridGraph.Vertex, width: Int, height: Int, directions: OrderedSet<GridDirection>) {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
145 | self.vertex = vertex
146 | self.width = width
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:164:17: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
162 | let height: Int
163 | @usableFromInline
164 | let directions: OrderedSet<GridDirection>
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
165 | @usableFromInline
166 | var currentIndex: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:169:20: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
167 |
168 | @inlinable
169 | public init(vertex: GridGraph.Vertex, width: Int, height: Int, directions: OrderedSet<GridDirection>) {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
170 | self.vertex = vertex
171 | self.width = width
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:229:13: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
227 | let height: Int
228 | @usableFromInline
229 | let directions: OrderedSet<GridDirection>
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
230 |
231 | @inlinable
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:232:16: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
230 |
231 | @inlinable
232 | public init(vertex: GridGraph.Vertex, width: Int, height: Int, directions: OrderedSet<GridDirection>) {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
233 | self.vertex = vertex
234 | self.width = width
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:250:17: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
248 | let height: Int
249 | @usableFromInline
250 | let directions: OrderedSet<GridDirection>
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
251 | @usableFromInline
252 | var currentIndex: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:255:20: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
253 |
254 | @inlinable
255 | public init(vertex: GridGraph.Vertex, width: Int, height: Int, directions: OrderedSet<GridDirection>) {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
256 | self.vertex = vertex
257 | self.width = width
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:307:13: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
305 | let height: Int
306 | @usableFromInline
307 | let directions: OrderedSet<GridDirection>
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
308 |
309 | @inlinable
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:310:16: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
308 |
309 | @inlinable
310 | public init(width: Int, height: Int, directions: OrderedSet<GridDirection>) {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
311 | self.width = width
312 | self.height = height
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:325:17: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
323 | let height: Int
324 | @usableFromInline
325 | let directions: OrderedSet<GridDirection>
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
326 | @usableFromInline
327 | var currentX: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:334:20: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
332 |
333 | @inlinable
334 | public init(width: Int, height: Int, directions: OrderedSet<GridDirection>) {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
335 | self.width = width
336 | self.height = height
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:421:23: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
419 | extension OrderedSet<GridDirection> {
420 | /// Horizontal movement directions (left and right).
421 | public static let horizontal: Self = [.left, .right]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
422 |
423 | /// Vertical movement directions (up and down).
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:424:23: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
422 |
423 | /// Vertical movement directions (up and down).
424 | public static let vertical: Self = [.up, .down]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
425 |
426 | /// Orthogonal movement directions (horizontal + vertical).
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:427:23: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
425 |
426 | /// Orthogonal movement directions (horizontal + vertical).
427 | public static let orthogonal: Self = horizontal + vertical
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
428 |
429 | /// Diagonal movement directions.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:430:23: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
428 |
429 | /// Diagonal movement directions.
430 | public static let diagonal: Self = [.upRight, .downRight, .downLeft, .upLeft]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
431 |
432 | /// All possible movement directions.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:433:23: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
431 |
432 | /// All possible movement directions.
433 | public static let all: Self = orthogonal + diagonal
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
434 |
435 | static func + (lhs: Self, rhs: Self) -> Self {
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:419:1: error: cannot use generic struct 'OrderedSet' in an extension with public or '@usableFromInline' members; 'OrderedCollections' was not imported by this file
417 | }
418 |
419 | extension OrderedSet<GridDirection> {
| `- error: cannot use generic struct 'OrderedSet' in an extension with public or '@usableFromInline' members; 'OrderedCollections' was not imported by this file
420 | /// Horizontal movement directions (left and right).
421 | public static let horizontal: Self = [.left, .right]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:178:49: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
176 | @inlinable
177 | public mutating func next() -> GridGraph.Edge? {
178 | while currentIndex < directions.count {
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
179 | defer { currentIndex += 1 }
180 | let direction = directions[directions.index(directions.startIndex, offsetBy: currentIndex)]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:180:37: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
178 | while currentIndex < directions.count {
179 | defer { currentIndex += 1 }
180 | let direction = directions[directions.index(directions.startIndex, offsetBy: currentIndex)]
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
181 | let (deltaX, deltaY) = GridGraph.delta(for: direction)
182 | let nextX = vertex.x + deltaX
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:180:59: error: instance method 'index(_:offsetBy:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
178 | while currentIndex < directions.count {
179 | defer { currentIndex += 1 }
180 | let direction = directions[directions.index(directions.startIndex, offsetBy: currentIndex)]
| `- error: instance method 'index(_:offsetBy:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
181 | let (deltaX, deltaY) = GridGraph.delta(for: direction)
182 | let nextX = vertex.x + deltaX
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:180:76: error: property 'startIndex' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
178 | while currentIndex < directions.count {
179 | defer { currentIndex += 1 }
180 | let direction = directions[directions.index(directions.startIndex, offsetBy: currentIndex)]
| `- error: property 'startIndex' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
181 | let (deltaX, deltaY) = GridGraph.delta(for: direction)
182 | let nextX = vertex.x + deltaX
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:207:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
205 | public func outDegree(of vertex: VertexDescriptor) -> Int {
206 | var degree = 0
207 | for direction in allowedDirections {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
208 | let (deltaX, deltaY) = GridGraph.delta(for: direction)
209 | let nextX = vertex.x + deltaX
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:207:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
205 | public func outDegree(of vertex: VertexDescriptor) -> Int {
206 | var degree = 0
207 | for direction in allowedDirections {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
208 | let (deltaX, deltaY) = GridGraph.delta(for: direction)
209 | let nextX = vertex.x + deltaX
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:264:49: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
262 | @inlinable
263 | public mutating func next() -> GridGraph.Edge? {
264 | while currentIndex < directions.count {
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
265 | defer { currentIndex += 1 }
266 | let direction = directions[directions.index(directions.startIndex, offsetBy: currentIndex)]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:266:37: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
264 | while currentIndex < directions.count {
265 | defer { currentIndex += 1 }
266 | let direction = directions[directions.index(directions.startIndex, offsetBy: currentIndex)]
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
267 | let (deltaX, deltaY) = GridGraph.delta(for: direction)
268 | let previousX = vertex.x - deltaX
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:266:59: error: instance method 'index(_:offsetBy:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
264 | while currentIndex < directions.count {
265 | defer { currentIndex += 1 }
266 | let direction = directions[directions.index(directions.startIndex, offsetBy: currentIndex)]
| `- error: instance method 'index(_:offsetBy:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
267 | let (deltaX, deltaY) = GridGraph.delta(for: direction)
268 | let previousX = vertex.x - deltaX
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:266:76: error: property 'startIndex' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
264 | while currentIndex < directions.count {
265 | defer { currentIndex += 1 }
266 | let direction = directions[directions.index(directions.startIndex, offsetBy: currentIndex)]
| `- error: property 'startIndex' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
267 | let (deltaX, deltaY) = GridGraph.delta(for: direction)
268 | let previousX = vertex.x - deltaX
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:287:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
285 | public func inDegree(of vertex: VertexDescriptor) -> Int {
286 | var degree = 0
287 | for direction in allowedDirections {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
288 | let (deltaX, deltaY) = GridGraph.delta(for: direction)
289 | let previousX = vertex.x - deltaX
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:287:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
285 | public func inDegree(of vertex: VertexDescriptor) -> Int {
286 | var degree = 0
287 | for direction in allowedDirections {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
288 | let (deltaX, deltaY) = GridGraph.delta(for: direction)
289 | let previousX = vertex.x - deltaX
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:383:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
381 | let deltaY = destination.y - source.y
382 | var isAllowed = false
383 | for direction in allowedDirections {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
384 | let (allowedDeltaX, allowedDeltaY) = GridGraph.delta(for: direction)
385 | if allowedDeltaX == deltaX && allowedDeltaY == deltaY {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/GridGraph.swift:383:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
381 | let deltaY = destination.y - source.y
382 | var isAllowed = false
383 | for direction in allowedDirections {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
384 | let (allowedDeltaX, allowedDeltaY) = GridGraph.delta(for: direction)
385 | if allowedDeltaX == deltaX && allowedDeltaY == deltaY {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:104:30: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
102 | var graph = AdjacencyList()
103 |
104 | let uniqueVertices = OrderedSet(result.vertices)
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
105 |
106 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:104:30: error: initializer 'init(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
102 | var graph = AdjacencyList()
103 |
104 | let uniqueVertices = OrderedSet(result.vertices)
| `- error: initializer 'init(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
105 |
106 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:104:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
102 | var graph = AdjacencyList()
103 |
104 | let uniqueVertices = OrderedSet(result.vertices)
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
105 |
106 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:107:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
105 |
106 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
107 | for vertex in uniqueVertices {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
108 | vertexMapping[vertex] = graph.addVertex()
109 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/LazyGraph.swift:107:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
105 |
106 | var vertexMapping: [Vertex: OrderedVertexStorage.Vertex] = [:]
107 | for vertex in uniqueVertices {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
108 | vertexMapping[vertex] = graph.addVertex()
109 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:24:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
22 | var rightEdgeMap: [Vertex: Edge] = [:]
23 | @usableFromInline
24 | var edgesStore: OrderedDictionary<Edge, (source: Vertex, destination: Vertex)> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
25 | @usableFromInline
26 | var nextEdgeId: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:31:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
29 | extension BinaryEdgeStore: EdgeStorage {
30 | @inlinable
31 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 |
33 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:42:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
40 |
41 | @inlinable
42 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
43 | var result: OrderedSet<Edge> = []
44 | if let e = leftEdgeMap[vertex] { result.updateOrAppend(e) }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:55:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
53 |
54 | @inlinable
55 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
56 | var result: OrderedSet<Edge> = []
57 | for (edge, endpoints) in edgesStore where endpoints.destination == vertex {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:29:1: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
27 | }
28 |
29 | extension BinaryEdgeStore: EdgeStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<BinaryEdgeStore<Vertex>.Edge>')
30 | @inlinable
31 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:31:58: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
29 | extension BinaryEdgeStore: EdgeStorage {
30 | @inlinable
31 | public func edges() -> OrderedSet<Edge> { edgesStore.keys }
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 |
33 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:34:44: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 |
33 | @inlinable
34 | public var edgeCount: Int { edgesStore.count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 |
36 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:38:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | @inlinable
37 | public func endpoints(of edge: Edge) -> (source: Vertex, destination: Vertex)? {
38 | edgesStore[edge]
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | }
40 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:43:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
41 | @inlinable
42 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
43 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
44 | if let e = leftEdgeMap[vertex] { result.updateOrAppend(e) }
45 | if let e = rightEdgeMap[vertex] { result.updateOrAppend(e) }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:43:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
41 | @inlinable
42 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
43 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
44 | if let e = leftEdgeMap[vertex] { result.updateOrAppend(e) }
45 | if let e = rightEdgeMap[vertex] { result.updateOrAppend(e) }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:44:49: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
42 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
43 | var result: OrderedSet<Edge> = []
44 | if let e = leftEdgeMap[vertex] { result.updateOrAppend(e) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
45 | if let e = rightEdgeMap[vertex] { result.updateOrAppend(e) }
46 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:45:50: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
43 | var result: OrderedSet<Edge> = []
44 | if let e = leftEdgeMap[vertex] { result.updateOrAppend(e) }
45 | if let e = rightEdgeMap[vertex] { result.updateOrAppend(e) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
46 | return result
47 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:56:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 | @inlinable
55 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
56 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | for (edge, endpoints) in edgesStore where endpoints.destination == vertex {
58 | result.updateOrAppend(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:56:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 | @inlinable
55 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
56 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | for (edge, endpoints) in edgesStore where endpoints.destination == vertex {
58 | result.updateOrAppend(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:57:9: error: instance method 'makeIterator()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
56 | var result: OrderedSet<Edge> = []
57 | for (edge, endpoints) in edgesStore where endpoints.destination == vertex {
| `- error: instance method 'makeIterator()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | result.updateOrAppend(edge)
59 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:57:9: error: instance method 'next()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
56 | var result: OrderedSet<Edge> = []
57 | for (edge, endpoints) in edgesStore where endpoints.destination == vertex {
| `- error: instance method 'next()' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | result.updateOrAppend(edge)
59 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:58:20: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
56 | var result: OrderedSet<Edge> = []
57 | for (edge, endpoints) in edgesStore where endpoints.destination == vertex {
58 | result.updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
59 | }
60 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:65:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
63 | @inlinable
64 | public func inDegree(of vertex: Vertex) -> Int {
65 | incomingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | }
67 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:75:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
73 | nextEdgeId &+= 1
74 | leftEdgeMap[source] = e
75 | edgesStore[e] = (source, destination)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
76 | return e
77 | } else if rightEdgeMap[source] == nil {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:81:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
79 | nextEdgeId &+= 1
80 | rightEdgeMap[source] = e
81 | edgesStore[e] = (source, destination)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
82 | return e
83 | } else {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:88:28: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
86 | nextEdgeId &+= 1
87 | if let old = rightEdgeMap[source] {
88 | edgesStore.removeValue(forKey: old)
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
89 | }
90 | rightEdgeMap[source] = e
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:91:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
89 | }
90 | rightEdgeMap[source] = e
91 | edgesStore[e] = (source, destination)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | return e
93 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/BinaryEdgeStorage.swift:99:42: error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
97 | @inlinable
98 | public mutating func remove(edge: consuming Edge) {
99 | guard let endpoints = edgesStore.removeValue(forKey: edge) else { return }
| `- error: instance method 'removeValue(forKey:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
100 | let parent = endpoints.source
101 | if leftEdgeMap[parent] == edge {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:33:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
31 |
32 | @inlinable
33 | public func edges() -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
34 | var result: OrderedSet<Edge> = []
35 | result.reserveCapacity(sources.count)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:53:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
51 |
52 | @inlinable
53 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 | var result: OrderedSet<Edge> = []
55 | if sources.isEmpty { return result }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:69:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
67 |
68 | @inlinable
69 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
70 | var result: OrderedSet<Edge> = []
71 | if destinations.isEmpty { return result }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:8:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
6 | /// This format is efficient for sparse graphs and provides good performance for edge insertion
7 | /// and removal operations.
8 | public struct COOEdgeStorage<Vertex: Hashable>: EdgeStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<COOEdgeStorage<Vertex>.Edge>')
9 | /// An edge descriptor for COO format edges.
10 | public struct Edge: Identifiable, Hashable {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:34:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 | @inlinable
33 | public func edges() -> OrderedSet<Edge> {
34 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | result.reserveCapacity(sources.count)
36 | for index in 0 ..< sources.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:34:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 | @inlinable
33 | public func edges() -> OrderedSet<Edge> {
34 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | result.reserveCapacity(sources.count)
36 | for index in 0 ..< sources.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:35:16: error: instance method 'reserveCapacity' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
33 | public func edges() -> OrderedSet<Edge> {
34 | var result: OrderedSet<Edge> = []
35 | result.reserveCapacity(sources.count)
| `- error: instance method 'reserveCapacity' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | for index in 0 ..< sources.count {
37 | if !tombstones.contains(index) {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:38:24: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | for index in 0 ..< sources.count {
37 | if !tombstones.contains(index) {
38 | result.updateOrAppend(Edge(id: index))
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | }
40 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:54:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
52 | @inlinable
53 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
54 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | if sources.isEmpty { return result }
56 | for index in 0 ..< sources.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:54:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
52 | @inlinable
53 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
54 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | if sources.isEmpty { return result }
56 | for index in 0 ..< sources.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:58:50: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
56 | for index in 0 ..< sources.count {
57 | if tombstones.contains(index) { continue }
58 | if sources[index] == vertex { result.updateOrAppend(Edge(id: index)) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
59 | }
60 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:65:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
63 | @inlinable
64 | public func outDegree(of vertex: Vertex) -> Int {
65 | outgoingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | }
67 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:70:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
68 | @inlinable
69 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
70 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
71 | if destinations.isEmpty { return result }
72 | for index in 0 ..< destinations.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:70:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
68 | @inlinable
69 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
70 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
71 | if destinations.isEmpty { return result }
72 | for index in 0 ..< destinations.count {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:74:55: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | for index in 0 ..< destinations.count {
73 | if tombstones.contains(index) { continue }
74 | if destinations[index] == vertex { result.updateOrAppend(Edge(id: index)) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 | }
76 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/COOEdgeStorage.swift:81:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
79 | @inlinable
80 | public func inDegree(of vertex: Vertex) -> Int {
81 | incomingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
82 | }
83 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:20:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
18 |
19 | @usableFromInline
20 | var vertexIndex: OrderedDictionary<Vertex, Int> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
21 | @usableFromInline
22 | var rowOffsets: [Int] = [0]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:30:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
28 | var edgeDestinations: [Vertex] = []
29 | @usableFromInline
30 | var alive: OrderedSet<Int> = []
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
31 | @usableFromInline
32 | var freeList: [Int] = []
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:34:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
32 | var freeList: [Int] = []
33 | @usableFromInline
34 | var incomingBuckets: OrderedDictionary<Vertex, OrderedSet<Int>> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
35 |
36 | @inlinable
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:34:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
32 | var freeList: [Int] = []
33 | @usableFromInline
34 | var incomingBuckets: OrderedDictionary<Vertex, OrderedSet<Int>> = [:]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
35 |
36 | @inlinable
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:40:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
38 |
39 | @inlinable
40 | public func edges() -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
41 | var result: OrderedSet<Edge> = []
42 | result.reserveCapacity(alive.count)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:56:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 |
55 | @inlinable
56 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | guard let vertexIndex = vertexIndex[vertex] else { return [] }
58 | let startIndex = rowOffsets[vertexIndex]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:78:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
76 |
77 | @inlinable
78 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
79 | guard let bucket = incomingBuckets[vertex] else { return [] }
80 | var result: OrderedSet<Edge> = []
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:8:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
6 | /// which is optimized for graph algorithms that need to iterate over outgoing edges
7 | /// of vertices. This format provides excellent cache locality for traversal operations.
8 | public struct CSREdgeStorage<Vertex: Hashable>: EdgeStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<CSREdgeStorage<Vertex>.Edge>')
9 | /// An edge descriptor for CSR format edges.
10 | public struct Edge: Identifiable, Hashable {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:37:39: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 |
36 | @inlinable
37 | public var edgeCount: Int { alive.count }
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
38 |
39 | @inlinable
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:41:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | @inlinable
40 | public func edges() -> OrderedSet<Edge> {
41 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
42 | result.reserveCapacity(alive.count)
43 | for id in alive { result.updateOrAppend(Edge(id: id)) }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:41:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | @inlinable
40 | public func edges() -> OrderedSet<Edge> {
41 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
42 | result.reserveCapacity(alive.count)
43 | for id in alive { result.updateOrAppend(Edge(id: id)) }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:42:16: error: instance method 'reserveCapacity' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
40 | public func edges() -> OrderedSet<Edge> {
41 | var result: OrderedSet<Edge> = []
42 | result.reserveCapacity(alive.count)
| `- error: instance method 'reserveCapacity' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
43 | for id in alive { result.updateOrAppend(Edge(id: id)) }
44 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:42:38: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
40 | public func edges() -> OrderedSet<Edge> {
41 | var result: OrderedSet<Edge> = []
42 | result.reserveCapacity(alive.count)
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
43 | for id in alive { result.updateOrAppend(Edge(id: id)) }
44 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:43:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
41 | var result: OrderedSet<Edge> = []
42 | result.reserveCapacity(alive.count)
43 | for id in alive { result.updateOrAppend(Edge(id: id)) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
44 | return result
45 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:43:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
41 | var result: OrderedSet<Edge> = []
42 | result.reserveCapacity(alive.count)
43 | for id in alive { result.updateOrAppend(Edge(id: id)) }
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
44 | return result
45 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:43:34: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
41 | var result: OrderedSet<Edge> = []
42 | result.reserveCapacity(alive.count)
43 | for id in alive { result.updateOrAppend(Edge(id: id)) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
44 | return result
45 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:51:19: error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
49 | let id = edge.id
50 | guard id >= 0 && id < edgeSources.count else { return nil }
51 | if !alive.contains(id) { return nil }
| `- error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
52 | return (edgeSources[id], edgeDestinations[id])
53 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:57:33: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | @inlinable
56 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
57 | guard let vertexIndex = vertexIndex[vertex] else { return [] }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | let startIndex = rowOffsets[vertexIndex]
59 | let endIndex = rowOffsets[vertexIndex + 1]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:57:67: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
55 | @inlinable
56 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
57 | guard let vertexIndex = vertexIndex[vertex] else { return [] }
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | let startIndex = rowOffsets[vertexIndex]
59 | let endIndex = rowOffsets[vertexIndex + 1]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:60:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | let startIndex = rowOffsets[vertexIndex]
59 | let endIndex = rowOffsets[vertexIndex + 1]
60 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
61 | result.reserveCapacity(endIndex - startIndex)
62 | var currentIndex = startIndex
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:60:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | let startIndex = rowOffsets[vertexIndex]
59 | let endIndex = rowOffsets[vertexIndex + 1]
60 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
61 | result.reserveCapacity(endIndex - startIndex)
62 | var currentIndex = startIndex
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:61:16: error: instance method 'reserveCapacity' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
59 | let endIndex = rowOffsets[vertexIndex + 1]
60 | var result: OrderedSet<Edge> = []
61 | result.reserveCapacity(endIndex - startIndex)
| `- error: instance method 'reserveCapacity' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
62 | var currentIndex = startIndex
63 | while currentIndex < endIndex {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:65:22: error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
63 | while currentIndex < endIndex {
64 | let edgeId = flatEdgeIds[currentIndex]
65 | if alive.contains(edgeId) { result.updateOrAppend(Edge(id: edgeId)) }
| `- error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | currentIndex &+= 1
67 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:65:48: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
63 | while currentIndex < endIndex {
64 | let edgeId = flatEdgeIds[currentIndex]
65 | if alive.contains(edgeId) { result.updateOrAppend(Edge(id: edgeId)) }
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | currentIndex &+= 1
67 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:73:33: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
71 | @inlinable
72 | public func outDegree(of vertex: Vertex) -> Int {
73 | guard let vertexIndex = vertexIndex[vertex] else { return 0 }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
74 | return rowOffsets[vertexIndex + 1] - rowOffsets[vertexIndex]
75 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:79:28: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
77 | @inlinable
78 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
79 | guard let bucket = incomingBuckets[vertex] else { return [] }
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
80 | var result: OrderedSet<Edge> = []
81 | result.reserveCapacity(bucket.count)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:79:66: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
77 | @inlinable
78 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
79 | guard let bucket = incomingBuckets[vertex] else { return [] }
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
80 | var result: OrderedSet<Edge> = []
81 | result.reserveCapacity(bucket.count)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:80:13: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
78 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
79 | guard let bucket = incomingBuckets[vertex] else { return [] }
80 | var result: OrderedSet<Edge> = []
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
81 | result.reserveCapacity(bucket.count)
82 | for edgeId in bucket where alive.contains(edgeId) {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:80:40: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
78 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
79 | guard let bucket = incomingBuckets[vertex] else { return [] }
80 | var result: OrderedSet<Edge> = []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
81 | result.reserveCapacity(bucket.count)
82 | for edgeId in bucket where alive.contains(edgeId) {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:81:16: error: instance method 'reserveCapacity' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
79 | guard let bucket = incomingBuckets[vertex] else { return [] }
80 | var result: OrderedSet<Edge> = []
81 | result.reserveCapacity(bucket.count)
| `- error: instance method 'reserveCapacity' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
82 | for edgeId in bucket where alive.contains(edgeId) {
83 | result.updateOrAppend(Edge(id: edgeId))
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:81:39: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
79 | guard let bucket = incomingBuckets[vertex] else { return [] }
80 | var result: OrderedSet<Edge> = []
81 | result.reserveCapacity(bucket.count)
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
82 | for edgeId in bucket where alive.contains(edgeId) {
83 | result.updateOrAppend(Edge(id: edgeId))
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:82:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
80 | var result: OrderedSet<Edge> = []
81 | result.reserveCapacity(bucket.count)
82 | for edgeId in bucket where alive.contains(edgeId) {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
83 | result.updateOrAppend(Edge(id: edgeId))
84 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:82:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
80 | var result: OrderedSet<Edge> = []
81 | result.reserveCapacity(bucket.count)
82 | for edgeId in bucket where alive.contains(edgeId) {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
83 | result.updateOrAppend(Edge(id: edgeId))
84 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:82:42: error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
80 | var result: OrderedSet<Edge> = []
81 | result.reserveCapacity(bucket.count)
82 | for edgeId in bucket where alive.contains(edgeId) {
| `- error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
83 | result.updateOrAppend(Edge(id: edgeId))
84 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:83:20: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
81 | result.reserveCapacity(bucket.count)
82 | for edgeId in bucket where alive.contains(edgeId) {
83 | result.updateOrAppend(Edge(id: edgeId))
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
84 | }
85 | return result
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:90:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
88 | @inlinable
89 | public func inDegree(of vertex: Vertex) -> Int {
90 | incomingBuckets[vertex]?.count ?? 0
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | }
92 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:90:34: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
88 | @inlinable
89 | public func inDegree(of vertex: Vertex) -> Int {
90 | incomingBuckets[vertex]?.count ?? 0
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | }
92 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:114:15: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
112 | edgeDestinations.append(destination)
113 | }
114 | alive.updateOrAppend(edgeId)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
115 |
116 | let sourceIndex = ensureIndex(for: source)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:126:9: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
124 | }
125 |
126 | incomingBuckets[destination, default: []].updateOrAppend(edgeId)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
127 |
128 | return Edge(id: edgeId)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:126:47: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
124 | }
125 |
126 | incomingBuckets[destination, default: []].updateOrAppend(edgeId)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
127 |
128 | return Edge(id: edgeId)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:126:51: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
124 | }
125 |
126 | incomingBuckets[destination, default: []].updateOrAppend(edgeId)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
127 |
128 | return Edge(id: edgeId)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:135:19: error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
133 | let edgeId = edge.id
134 | guard edgeId >= 0 && edgeId < edgeSources.count else { return }
135 | if !alive.contains(edgeId) { return }
| `- error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
136 | let source = edgeSources[edgeId]
137 | let destination = edgeDestinations[edgeId]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:139:30: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
137 | let destination = edgeDestinations[edgeId]
138 |
139 | if let sourceIndex = vertexIndex[source] {
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
140 | let startIndex = rowOffsets[sourceIndex]
141 | let endIndex = rowOffsets[sourceIndex + 1]
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:152:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
150 | }
151 |
152 | incomingBuckets[destination]?.remove(edgeId)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
153 | alive.remove(edgeId)
154 | freeList.append(edgeId)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:152:39: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
150 | }
151 |
152 | incomingBuckets[destination]?.remove(edgeId)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
153 | alive.remove(edgeId)
154 | freeList.append(edgeId)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CSREdgeStorage.swift:153:15: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
151 |
152 | incomingBuckets[destination]?.remove(edgeId)
153 | alive.remove(edgeId)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
154 | freeList.append(edgeId)
155 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:3:1: error: cannot use generic struct 'OrderedSet' in an extension with public or '@usableFromInline' members; 'OrderedCollections' was not imported by this file
1 | import Collections
2 |
3 | extension EdgeStorage where Edges == OrderedSet<Edge> {
| `- error: cannot use generic struct 'OrderedSet' in an extension with public or '@usableFromInline' members; 'OrderedCollections' was not imported by this file
4 | @inlinable
5 | public func cacheInOutEdges() -> CacheInOutEdges<Self> {
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:41:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
39 |
40 | @usableFromInline
41 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
42 | @usableFromInline
43 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:41:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
39 |
40 | @usableFromInline
41 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
42 | @usableFromInline
43 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:43:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
41 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
42 | @usableFromInline
43 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
44 |
45 | /// Returns all outgoing edges from a vertex.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:43:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
41 | var _outgoingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
42 | @usableFromInline
43 | var _incomingEdges: OrderedDictionary<Vertex, OrderedSet<Edge>> = [:]
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
44 |
45 | /// Returns all outgoing edges from a vertex.
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:50:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
48 | /// - Returns: A set of edges originating from the vertex
49 | @inlinable
50 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
51 | _outgoingEdges[vertex] ?? []
52 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:68:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | /// - Returns: A set of edges terminating at the vertex
67 | @inlinable
68 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
69 | _incomingEdges[vertex] ?? []
70 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:15:15: error: cannot use generic struct 'OrderedSet' here; 'OrderedCollections' was not imported by this file
13 | /// O(1) access to edge lists, which is especially useful for algorithms that frequently
14 | /// query the incidence structure of a graph.
15 | public struct CacheInOutEdges<
| `- error: cannot use generic struct 'OrderedSet' here; 'OrderedCollections' was not imported by this file
16 | Base: EdgeStorage
17 | >: EdgeStorage where
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:15:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
13 | /// O(1) access to edge lists, which is especially useful for algorithms that frequently
14 | /// query the incidence structure of a graph.
15 | public struct CacheInOutEdges<
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<Base.Edge>')
16 | Base: EdgeStorage
17 | >: EdgeStorage where
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:32:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
30 | self.base = base
31 | // Hydrate caches for pre-populated storages
32 | for edge in base.edges() {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:32:9: error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
30 | self.base = base
31 | // Hydrate caches for pre-populated storages
32 | for edge in base.edges() {
| `- error: cannot use conformance of 'OrderedSet<Element>' to 'Collection' here; 'OrderedCollections' was not imported by this file
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:34:17: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 | for edge in base.edges() {
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
36 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:34:49: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 | for edge in base.edges() {
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
36 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:34:53: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
32 | for edge in base.edges() {
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
36 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:35:17: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | }
37 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:35:54: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | }
37 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:35:58: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
33 | if let (source, destination) = base.endpoints(of: edge) {
34 | _outgoingEdges[source, default: []].updateOrAppend(edge)
35 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | }
37 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:51:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
49 | @inlinable
50 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
51 | _outgoingEdges[vertex] ?? []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
52 | }
53 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:51:35: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
49 | @inlinable
50 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
51 | _outgoingEdges[vertex] ?? []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
52 | }
53 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:60:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
58 | @inlinable
59 | public func outDegree(of vertex: Vertex) -> Int {
60 | outgoingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
61 | }
62 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:69:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
67 | @inlinable
68 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
69 | _incomingEdges[vertex] ?? []
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
70 | }
71 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:69:35: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
67 | @inlinable
68 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
69 | _incomingEdges[vertex] ?? []
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
70 | }
71 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:78:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
76 | @inlinable
77 | public func inDegree(of vertex: Vertex) -> Int {
78 | incomingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
79 | }
80 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:90:9: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
88 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
92 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:90:41: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
88 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
92 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:90:45: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
88 | public mutating func addEdge(from source: Vertex, to destination: Vertex) -> Edge {
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
92 | return edge
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:91:9: error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: subscript 'subscript(_:default:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | return edge
93 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:91:46: error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: initializer 'init(arrayLiteral:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | return edge
93 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:91:50: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
89 | let edge = base.addEdge(from: source, to: destination)
90 | _outgoingEdges[source, default: []].updateOrAppend(edge)
91 | _incomingEdges[destination, default: []].updateOrAppend(edge)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
92 | return edge
93 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:101:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
99 | public mutating func remove(edge: Edge) {
100 | if let (source, destination) = endpoints(of: edge) {
101 | _outgoingEdges[source]?.remove(edge)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
102 | _incomingEdges[destination]?.remove(edge)
103 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:101:37: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
99 | public mutating func remove(edge: Edge) {
100 | if let (source, destination) = endpoints(of: edge) {
101 | _outgoingEdges[source]?.remove(edge)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
102 | _incomingEdges[destination]?.remove(edge)
103 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:102:13: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
100 | if let (source, destination) = endpoints(of: edge) {
101 | _outgoingEdges[source]?.remove(edge)
102 | _incomingEdges[destination]?.remove(edge)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | }
104 | base.remove(edge: edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/CacheInOutEdges.swift:102:42: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
100 | if let (source, destination) = endpoints(of: edge) {
101 | _outgoingEdges[source]?.remove(edge)
102 | _incomingEdges[destination]?.remove(edge)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | }
104 | base.remove(edge: edge)
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:25:9: error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
23 |
24 | @usableFromInline
25 | var _edges: OrderedDictionary<Edge, (source: Vertex, destination: Vertex)> = [:]
| `- error: cannot use generic struct 'OrderedDictionary' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
26 | @usableFromInline
27 | var _nextId: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedDictionary/OrderedDictionary.swift:205:15: note: generic struct declared here
203 | /// characteristics.
204 | @frozen
205 | public struct OrderedDictionary<Key: Hashable, Value> {
| `- note: generic struct declared here
206 | @usableFromInline
207 | internal var _keys: OrderedSet<Key>
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:37:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
35 | /// Returns all edges in storage.
36 | @inlinable
37 | public func edges() -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
38 | _edges.keys
39 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:55:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
53 | /// - Returns: A set of edges originating from the vertex
54 | @inlinable
55 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
56 | _edges.filter { $0.value.source == vertex }.keys
57 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:73:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
71 | /// - Returns: A set of edges terminating at the vertex
72 | @inlinable
73 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
74 | _edges.filter { $0.value.destination == vertex }.keys
75 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:15:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
13 | /// efficient lookup and iteration. It's commonly used as the default
14 | /// edge storage for adjacency list graphs.
15 | public struct OrderedEdgeStorage<Vertex: Hashable>: EdgeStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Edges' (inferred as 'OrderedSet<OrderedEdgeStorage<Vertex>.Edge>')
16 | /// An edge in the ordered edge storage.
17 | public struct Edge: Identifiable, Hashable {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:32:16: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
30 | @inlinable
31 | public var edgeCount: Int {
32 | _edges.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
33 | }
34 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:38:16: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | @inlinable
37 | public func edges() -> OrderedSet<Edge> {
38 | _edges.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | }
40 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:47:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
45 | @inlinable
46 | public func endpoints(of edge: Edge) -> (source: Vertex, destination: Vertex)? {
47 | _edges[edge]
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
48 | }
49 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:56:16: error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 | @inlinable
55 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
56 | _edges.filter { $0.value.source == vertex }.keys
| `- error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | }
58 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:56:53: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
54 | @inlinable
55 | public func outgoingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
56 | _edges.filter { $0.value.source == vertex }.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
57 | }
58 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:65:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
63 | @inlinable
64 | public func outDegree(of vertex: Vertex) -> Int {
65 | outgoingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
66 | }
67 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:74:16: error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | @inlinable
73 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
74 | _edges.filter { $0.value.destination == vertex }.keys
| `- error: instance method 'filter' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 | }
76 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:74:58: error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
72 | @inlinable
73 | public func incomingEdges(of vertex: Vertex) -> OrderedSet<Edge> {
74 | _edges.filter { $0.value.destination == vertex }.keys
| `- error: property 'keys' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
75 | }
76 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:83:35: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
81 | @inlinable
82 | public func inDegree(of vertex: Vertex) -> Int {
83 | incomingEdges(of: vertex).count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
84 | }
85 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:96:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
94 | let edge = Edge(_id: _nextId)
95 | _nextId &+= 1
96 | _edges[edge] = (source, destination)
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
97 | return edge
98 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedEdgeStorage.swift:105:9: error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
103 | @inlinable
104 | public mutating func remove(edge: Edge) {
105 | _edges[edge] = nil
| `- error: subscript 'subscript(_:)' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
106 | }
107 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:26:9: error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
24 |
25 | @usableFromInline
26 | var _vertices: OrderedSet<Vertex> = []
| `- error: cannot use generic struct 'OrderedSet' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'OrderedCollections' was not imported by this file
27 | @usableFromInline
28 | var _nextId: Int = 0
/host/spi-builder-workspace/.build/checkouts/swift-collections/Sources/OrderedCollections/OrderedSet/OrderedSet.swift:280:15: note: generic struct declared here
278 | /// proportional to the size of the set.
279 | @frozen
280 | public struct OrderedSet<Element> where Element: Hashable
| `- note: generic struct declared here
281 | {
282 | @usableFromInline
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:38:17: error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
36 | /// Returns all vertices in storage.
37 | @inlinable
38 | public func vertices() -> OrderedSet<Vertex> {
| `- error: generic struct 'OrderedSet' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
39 | _vertices
40 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:15:15: error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
13 | /// efficient lookup and iteration. It's commonly used as the default
14 | /// vertex storage for adjacency list graphs.
15 | public struct OrderedVertexStorage: VertexStorage {
| |- error: cannot use conformance of 'OrderedSet<Element>' to 'Sequence' here; 'OrderedCollections' was not imported by this file
| `- note: in associated type 'Self.Vertices' (inferred as 'OrderedSet<OrderedVertexStorage.Vertex>')
16 | /// A vertex in the ordered vertex storage.
17 | public struct Vertex: Identifiable, Hashable {
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:33:19: error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
31 | @inlinable
32 | public var vertexCount: Int {
33 | _vertices.count
| `- error: property 'count' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
34 | }
35 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:48:19: error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
46 | @inlinable
47 | public func contains(_ vertex: Vertex) -> Bool {
48 | _vertices.contains(vertex)
| `- error: instance method 'contains' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
49 | }
50 |
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:58:19: error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
56 | let vertex = Vertex(_id: _nextId)
57 | _nextId &+= 1
58 | _vertices.updateOrAppend(vertex)
| `- error: instance method 'updateOrAppend' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
59 | return vertex
60 | }
/host/spi-builder-workspace/Sources/Graphs/GraphImplementations/Storage/OrderedVertexStorage.swift:67:19: error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
65 | @inlinable
66 | public mutating func remove(vertex: Vertex) {
67 | _vertices.remove(vertex)
| `- error: instance method 'remove' cannot be used in an '@inlinable' function because 'OrderedCollections' was not imported by this file
68 | }
69 |
BUILD FAILURE 6.3 linux