Build Information
Failed to build swift-foundation, reference release/6.5.x (72996d), with Swift 6.3 for Linux on 22 Nov 2026 19:41:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
| `- error: value of type 'RawSpan' has no member 'load'
57 | let selfPartial = (selfHeader != 0 && selfHeader != UInt8.max)
58 | let subPartial = (subHeader != 0 && subHeader != UInt8.max)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:68:52: error: value of type 'RawSpan' has no member 'load'
66 | var w = 0
67 | while w < pageSize {
68 | let subWord = subBytes.load(fromByteOffset: subBodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
69 | let selfWord = selfBytes.load(fromByteOffset: selfBodyOffset + w, as: UInt.self).littleEndian
70 | if (subWord & ~selfWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:69:54: error: value of type 'RawSpan' has no member 'load'
67 | while w < pageSize {
68 | let subWord = subBytes.load(fromByteOffset: subBodyOffset + w, as: UInt.self).littleEndian
69 | let selfWord = selfBytes.load(fromByteOffset: selfBodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
70 | if (subWord & ~selfWord) != 0 {
71 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:95:42: error: value of type 'RawSpan' has no member 'load'
93 | var bodyOffset = numPages
94 | for p in 0..<numPages {
95 | let header = subsetBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
96 | if header == 0 { continue }
97 | let pageOffset = p * pageSize
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:101:37: error: value of type 'RawSpan' has no member 'load'
99 | var w = 0
100 | while w < pageSize {
101 | if superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian != UInt.max {
| `- error: value of type 'RawSpan' has no member 'load'
102 | return false
103 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:109:54: error: value of type 'RawSpan' has no member 'load'
107 | var w = 0
108 | while w < pageSize {
109 | let subsetWord = subsetBytes.load(fromByteOffset: bodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
110 | let supersetWord = superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian
111 | if (subsetWord & ~supersetWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:110:53: error: value of type 'RawSpan' has no member 'load'
108 | while w < pageSize {
109 | let subsetWord = subsetBytes.load(fromByteOffset: bodyOffset + w, as: UInt.self).littleEndian
110 | let supersetWord = superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
111 | if (subsetWord & ~supersetWord) != 0 {
112 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:237:38: error: cannot find type 'ConvertibleToBytes' in scope
235 | }
236 |
237 | extension OutputSpan where Element : ConvertibleToBytes & ConvertibleFromBytes {
| `- error: cannot find type 'ConvertibleToBytes' in scope
238 | package mutating func _append(copying span: Span<Element>) {
239 | precondition(self.freeCapacity >= span.count, "Insufficient space to copy the provided span (have space for \(self.freeCapacity) but writing \(span.count))")
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:219:45: error: cannot find type 'ConvertibleToBytes' in scope
217 | }
218 |
219 | package mutating func withOutputSpan<T: ConvertibleToBytes & ConvertibleFromBytes, E: Error, R: ~Copyable>(
| `- error: cannot find type 'ConvertibleToBytes' in scope
220 | of type: T.Type,
221 | _ body: (inout OutputSpan<T>) throws(E) -> R
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet.swift:526:9: error: cannot find 'withTemporaryAllocation' in scope
524 | // Use stack-allocated buffer via appendBitmap to avoid Data heap allocation
525 | var cacheHasher = Hasher()
526 | withTemporaryAllocation(of: UInt8.self, capacity: Self.__kCFBitmapSize) { output in
| `- error: cannot find 'withTemporaryAllocation' in scope
527 | appendBitmap(to: &output)
528 | output.span.withUnsafeBytes { cacheHasher.combine(bytes: $0) }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet.swift:527:13: error: no exact matches in call to instance method 'appendBitmap'
525 | var cacheHasher = Hasher()
526 | withTemporaryAllocation(of: UInt8.self, capacity: Self.__kCFBitmapSize) { output in
527 | appendBitmap(to: &output)
| `- error: no exact matches in call to instance method 'appendBitmap'
528 | output.span.withUnsafeBytes { cacheHasher.combine(bytes: $0) }
529 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageConversionHelpers.swift:135:19: note: candidate expects in-out value of type 'OutputRawSpan' for parameter #2 (got '_')
133 | }
134 |
135 | internal func appendBitmap(ofPlane plane: Int = 0, to output: inout OutputRawSpan) {
| `- note: candidate expects in-out value of type 'OutputRawSpan' for parameter #2 (got '_')
136 | output.withOutputSpan(of: UInt8.self) { typedOutput in
137 | appendBitmap(ofPlane: plane, to: &typedOutput)
:
140 |
141 | // __CFCSetGetBitmap
142 | internal func appendBitmap(ofPlane plane: Int = 0, to output: inout OutputSpan<UInt8>) {
| `- note: candidate expects in-out value of type 'OutputSpan<UInt8>' for parameter #2 (got '_')
143 | let byteCount = min(output.freeCapacity, Self.__kCFBitmapSize)
144 | precondition(byteCount > 0)
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:28: error: cannot suppress 'Copyable' requirement of an associated type
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
18 | associatedtype KeyView: ~Copyable, ~Escapable
19 | associatedtype UnkeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:39: error: cannot suppress 'Escapable' requirement of an associated type
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
18 | associatedtype KeyView: ~Copyable, ~Escapable
19 | associatedtype UnkeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:18:29: error: cannot suppress 'Copyable' requirement of an associated type
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:18:40: error: cannot suppress 'Escapable' requirement of an associated type
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:335:28: error: cannot suppress 'Copyable' requirement of an associated type
333 | /// Emits parse events into an `IterativeParsingDriver`. Every source is a tree walker: emits one top-level value, then advances frame-by-frame until the tree is exhausted.
334 | protocol ParseEventSource<Filter>: ~Copyable, ~Escapable {
335 | associatedtype Filter: ParseEventFilter & ~Copyable = NullFilter
| `- error: cannot suppress 'Copyable' requirement of an associated type
336 | associatedtype Vocabulary: ParseEventVocabulary
337 | /// Per-container state the source maintains for its walk. The driver stores it; the source reads/mutates via `channel.topSourceState`. Default `Void`.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:373:28: error: cannot suppress 'Copyable' requirement of an associated type
371 | associatedtype ValueFragment
372 | associatedtype ContainerFragment = ValueFragment
373 | associatedtype Output: ~Copyable
| `- error: cannot suppress 'Copyable' requirement of an associated type
374 |
375 | // Leaf events. Sink decides whether to compute and append.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:20:26: error: cannot suppress 'Copyable' requirement of an associated type
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:20:26: error: cannot suppress 'Escapable' requirement of an associated type
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:26:146: error: cannot suppress 'Copyable' requirement of an associated type
24 |
25 | /// Drives an iterative parse: routes events from a `ParseEventSource` to a `ParseEventSink`, owns the frame stack, and dispatches to a `ParseEventFilter`.
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:26:146: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
24 |
25 | /// Drives an iterative parse: routes events from a `ParseEventSource` to a `ParseEventSink`, owns the frame stack, and dispatches to a `ParseEventFilter`.
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:28:20: error: cannot find type 'UniqueArray' in scope
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
| `- error: cannot find type 'UniqueArray' in scope
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
30 | var frames: UniqueArray<_Frame>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:29:22: error: cannot find type 'UniqueArray' in scope
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
| `- error: cannot find type 'UniqueArray' in scope
30 | var frames: UniqueArray<_Frame>
31 | /// Set by the driver before every source call; read by `beginUnkeyedContainer`/`beginKeyedContainer` to stamp the pushed child frame's `filterLevel`. `nil` = no filter at this frame.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:30:17: error: cannot find type 'UniqueArray' in scope
28 | var keysArena: UniqueArray<Sink.KeyFragment>
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
30 | var frames: UniqueArray<_Frame>
| `- error: cannot find type 'UniqueArray' in scope
31 | /// Set by the driver before every source call; read by `beginUnkeyedContainer`/`beginKeyedContainer` to stamp the pushed child frame's `filterLevel`. `nil` = no filter at this frame.
32 | var pendingChildFilterLevel: Int?
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:65:140: error: cannot suppress 'Copyable' requirement of an associated type
63 | }
64 |
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:65:140: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
63 | }
64 |
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:67:45: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
68 | do {
69 | pendingChildFilterLevel = filter.rootLevel
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:85:61: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
83 |
84 | /// One step of the outer loop: ask the source to emit the next child of the top frame (respecting `filter`); if the source declines, close the frame.
85 | private mutating func advanceOrFinalizeTopFrame<Filter: ParseEventFilter & ~Copyable>(source: inout Source, filter: borrowing Filter) throws where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
86 | let topIdx = frames.count &- 1
87 | let atLevel = frames[topIdx].filterLevel
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:119:32: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
117 | }
118 |
119 | consuming func run<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink.Output where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
120 | return try runReturningSink(source: source, filter: filter).takeResult()
121 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:124:1: error: no type for 'Source.Filter' can satisfy both 'Source.Filter == NullFilter' and 'Source.Filter : Copyable'
122 | }
123 |
124 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter == NullFilter {
| `- error: no type for 'Source.Filter' can satisfy both 'Source.Filter == NullFilter' and 'Source.Filter : Copyable'
125 | consuming func runReturningSink(source: consuming Source) throws -> Sink {
126 | try self.runReturningSink(source: source, filter: NullFilter())
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:134:102: error: cannot suppress 'Copyable' requirement of an associated type
132 | }
133 |
134 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
135 | typealias Scalar = Sink.Vocabulary.Scalar
136 | typealias KeyView = Sink.Vocabulary.KeyView
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:134:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
132 | }
133 |
134 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
135 | typealias Scalar = Sink.Vocabulary.Scalar
136 | typealias KeyView = Sink.Vocabulary.KeyView
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:313:102: error: cannot suppress 'Copyable' requirement of an associated type
311 | mutating func beginKeyedContainer(cacheKey: Int?) throws { try beginKeyedContainer(cacheKey: cacheKey, sourceState: ()) }}
312 |
313 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.UnkeyedContainerKind == Void {
| `- error: cannot suppress 'Copyable' requirement of an associated type
314 | mutating func endUnkeyedContainer() throws { try endUnkeyedContainer(kind: ()) }
315 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:313:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
311 | mutating func beginKeyedContainer(cacheKey: Int?) throws { try beginKeyedContainer(cacheKey: cacheKey, sourceState: ()) }}
312 |
313 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.UnkeyedContainerKind == Void {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
314 | mutating func endUnkeyedContainer() throws { try endUnkeyedContainer(kind: ()) }
315 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:322:102: error: cannot suppress 'Copyable' requirement of an associated type
320 | }
321 |
322 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.KeyedContainerKind == Void {
| `- error: cannot suppress 'Copyable' requirement of an associated type
323 | mutating func endKeyedContainer() throws { try endKeyedContainer(kind: ()) }
324 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:322:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
320 | }
321 |
322 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.KeyedContainerKind == Void {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
323 | mutating func endKeyedContainer() throws { try endKeyedContainer(kind: ()) }
324 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:359:70: error: cannot suppress 'Copyable' requirement of an associated type
357 | }
358 |
359 | extension ParseEventSource where Self: ~Copyable & ~Escapable, Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
360 | mutating func finish() throws {}
361 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:359:70: error: 'Self.Filter' required to be 'Copyable' but is marked with '~Copyable'
357 | }
358 |
359 | extension ParseEventSource where Self: ~Copyable & ~Escapable, Filter: ~Copyable {
| `- error: 'Self.Filter' required to be 'Copyable' but is marked with '~Copyable'
360 | mutating func finish() throws {}
361 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:443:18: error: cannot find type 'MutableRef' in scope
441 | /// Append-only handle over one of the driver's fragment arenas. Handed to the sink during a leaf/key/finalize call so it can push (or not) without seeing the underlying storage.
442 | struct ParseEventAccumulator<Fragment>: ~Copyable, ~Escapable {
443 | var storage: MutableRef<UniqueArray<Fragment>>
| `- error: cannot find type 'MutableRef' in scope
444 |
445 | @_lifetime(copy storage)
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:446:29: error: cannot find type 'MutableRef' in scope
444 |
445 | @_lifetime(copy storage)
446 | init(storage: consuming MutableRef<UniqueArray<Fragment>>) {
| `- error: cannot find type 'MutableRef' in scope
447 | self.storage = storage
448 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:52:26: error: cannot find 'UniqueArray' in scope
50 | init(sink: consuming Sink) {
51 | self.sink = sink
52 | self.keysArena = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
53 | self.valuesArena = UniqueArray()
54 | self.frames = UniqueArray()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:53:28: error: cannot find 'UniqueArray' in scope
51 | self.sink = sink
52 | self.keysArena = UniqueArray()
53 | self.valuesArena = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
54 | self.frames = UniqueArray()
55 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:54:23: error: cannot find 'UniqueArray' in scope
52 | self.keysArena = UniqueArray()
53 | self.valuesArena = UniqueArray()
54 | self.frames = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:185:68: error: cannot find 'MutableRef' in scope
183 | precondition(!frames[topIdx].hasPendingKey, "parkKey: previous key not paired")
184 |
185 | var acc = ParseEventAccumulator<Sink.KeyFragment>(storage: MutableRef(&keysArena))
| `- error: cannot find 'MutableRef' in scope
186 | try sink.acceptKey(key, into: &acc)
187 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:192:70: error: cannot find 'MutableRef' in scope
190 |
191 | mutating func emitScalar(_ scalar: borrowing Scalar, cacheKey: Int? = nil) throws {
192 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
193 | try sink.acceptScalar(scalar, cacheKey: cacheKey, into: &acc)
194 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:198:70: error: cannot find 'MutableRef' in scope
196 |
197 | mutating func emitNull(cacheKey: Int? = nil) throws {
198 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
199 | try sink.acceptNull(cacheKey: cacheKey, into: &acc)
200 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:206:70: error: cannot find 'MutableRef' in scope
204 | // Roots are never dedup targets; sink cache is empty at parse start.
205 | if frames.isEmpty { return false }
206 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
207 | let hit = try sink.tryEmitCachedForKey(key, into: &acc)
208 | if hit {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:302:70: error: cannot find 'MutableRef' in scope
300 | return
301 | }
302 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
303 | try sink.acceptContainer(container, into: &acc)
304 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:88:8: error: type 'NullFilter' does not conform to protocol 'ParseEventFilter'
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- note: protocol requires nested type 'View'
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
:
86 | }
87 |
88 | struct NullFilter: ParseEventFilter, ~Copyable {
| |- error: type 'NullFilter' does not conform to protocol 'ParseEventFilter'
| `- note: add stubs for conformance
89 | typealias View = NullFilterView
| `- note: possibly intended match 'NullFilter.View' (aka 'NullFilterView') does not conform to 'Copyable'
90 | @inline(__always) var rootLevel: Int? { nil }
91 | @inline(__always) borrowing func nextLevel(after parentLevel: Int?) -> Int? { nil }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:40:6: error: type 'JSONVocabulary' does not conform to protocol 'ParseEventVocabulary'
38 |
39 | /// Event alphabet shared by JSON sources and sinks.
40 | enum JSONVocabulary: ParseEventVocabulary {
| |- error: type 'JSONVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
41 | typealias Scalar = JSONScalar
| `- note: possibly intended match 'JSONVocabulary.Scalar' (aka 'JSONScalar') does not conform to 'Copyable'
42 | typealias KeyView = JSONKeyView
| `- note: possibly intended match 'JSONVocabulary.KeyView' (aka 'JSONKeyView') does not conform to 'Copyable'
43 | }
44 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:77:6: error: type 'XMLPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
75 |
76 | /// Event alphabet shared by XML plist sources and sinks.
77 | enum XMLPlistVocabulary: ParseEventVocabulary {
| |- error: type 'XMLPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
78 | typealias Scalar = XMLPlistScalar
| `- note: possibly intended match 'XMLPlistVocabulary.Scalar' (aka 'XMLPlistScalar') does not conform to 'Copyable'
79 | typealias KeyView = XMLPlistKeyView
| `- note: possibly intended match 'XMLPlistVocabulary.KeyView' (aka 'XMLPlistKeyView') does not conform to 'Copyable'
80 | }
81 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:165:6: error: type 'BPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
163 |
164 | /// Event alphabet shared by bplist sources and sinks.
165 | enum BPlistVocabulary: ParseEventVocabulary {
| |- error: type 'BPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
166 | typealias Scalar = BPlistScalar
| `- note: possibly intended match 'BPlistVocabulary.Scalar' (aka 'BPlistScalar') does not conform to 'Copyable'
167 | typealias KeyView = BPlistKeyView
| `- note: possibly intended match 'BPlistVocabulary.KeyView' (aka 'BPlistKeyView') does not conform to 'Copyable'
168 | typealias UnkeyedContainerKind = BPlistUnkeyedContainerKind
169 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:62:41: error: composition cannot contain '~Copyable' when another member requires 'Copyable'
60 | }
61 |
62 | extension Span where Element: Equatable & ~Copyable {
| `- error: composition cannot contain '~Copyable' when another member requires 'Copyable'
63 | package func firstIndex(of element: borrowing Element) -> Int? {
64 | guard !isEmpty else {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+BitmapManipulationHelpers.swift:24:22: error: value of type 'RawSpan' has no member 'load'
22 | var offset = 0
23 | while offset + wordStride <= span.count {
24 | if bytes.load(fromByteOffset: offset, as: UInt64.self).littleEndian != pattern {
| `- error: value of type 'RawSpan' has no member 'load'
25 | return false
26 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+BitmapManipulationHelpers.swift:130:29: error: value of type 'RawSpan' has no member 'load'
128 |
129 | internal static func _asciiMask(fromBitmap bitmap: Span<UInt8>) -> UInt128 {
130 | return bitmap.bytes.load(fromByteOffset: 0, as: UInt128.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
131 | }
132 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:183:58: error: cannot find type 'ConvertibleToBytes' in scope
181 | }
182 |
183 | mutating func _append<S: Sequence<Element>, Element: ConvertibleToBytes & ConvertibleFromBytes>(copying elements: S) {
| `- error: cannot find type 'ConvertibleToBytes' in scope
184 | let early: Void? = elements.withContiguousStorageIfAvailable { buffer in
185 | self._append(copying: buffer.span.bytes)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+SetAlgebra.swift:672:37: error: value of type 'RawSpan' has no member 'load'
670 | var offset = 0
671 | while offset < Self.__kCFBitmapSize {
672 | let subsetWord = subset.load(fromByteOffset: offset, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
673 | let supersetWord = superset.load(fromByteOffset: offset, as: UInt.self).littleEndian
674 | if (subsetWord & ~supersetWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+SetAlgebra.swift:673:41: error: value of type 'RawSpan' has no member 'load'
671 | while offset < Self.__kCFBitmapSize {
672 | let subsetWord = subset.load(fromByteOffset: offset, as: UInt.self).littleEndian
673 | let supersetWord = superset.load(fromByteOffset: offset, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
674 | if (subsetWord & ~supersetWord) != 0 {
675 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:55:44: error: value of type 'RawSpan' has no member 'load'
53 | var subBodyOffset = numPages
54 | for p in 0..<numPages {
55 | let selfHeader = selfBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
56 | let subHeader = subBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
57 | let selfPartial = (selfHeader != 0 && selfHeader != UInt8.max)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:56:42: error: value of type 'RawSpan' has no member 'load'
54 | for p in 0..<numPages {
55 | let selfHeader = selfBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
56 | let subHeader = subBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
57 | let selfPartial = (selfHeader != 0 && selfHeader != UInt8.max)
58 | let subPartial = (subHeader != 0 && subHeader != UInt8.max)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:68:52: error: value of type 'RawSpan' has no member 'load'
66 | var w = 0
67 | while w < pageSize {
68 | let subWord = subBytes.load(fromByteOffset: subBodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
69 | let selfWord = selfBytes.load(fromByteOffset: selfBodyOffset + w, as: UInt.self).littleEndian
70 | if (subWord & ~selfWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:69:54: error: value of type 'RawSpan' has no member 'load'
67 | while w < pageSize {
68 | let subWord = subBytes.load(fromByteOffset: subBodyOffset + w, as: UInt.self).littleEndian
69 | let selfWord = selfBytes.load(fromByteOffset: selfBodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
70 | if (subWord & ~selfWord) != 0 {
71 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:95:42: error: value of type 'RawSpan' has no member 'load'
93 | var bodyOffset = numPages
94 | for p in 0..<numPages {
95 | let header = subsetBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
96 | if header == 0 { continue }
97 | let pageOffset = p * pageSize
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:101:37: error: value of type 'RawSpan' has no member 'load'
99 | var w = 0
100 | while w < pageSize {
101 | if superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian != UInt.max {
| `- error: value of type 'RawSpan' has no member 'load'
102 | return false
103 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:109:54: error: value of type 'RawSpan' has no member 'load'
107 | var w = 0
108 | while w < pageSize {
109 | let subsetWord = subsetBytes.load(fromByteOffset: bodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
110 | let supersetWord = superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian
111 | if (subsetWord & ~supersetWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:110:53: error: value of type 'RawSpan' has no member 'load'
108 | while w < pageSize {
109 | let subsetWord = subsetBytes.load(fromByteOffset: bodyOffset + w, as: UInt.self).littleEndian
110 | let supersetWord = superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
111 | if (subsetWord & ~supersetWord) != 0 {
112 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:237:38: error: cannot find type 'ConvertibleToBytes' in scope
235 | }
236 |
237 | extension OutputSpan where Element : ConvertibleToBytes & ConvertibleFromBytes {
| `- error: cannot find type 'ConvertibleToBytes' in scope
238 | package mutating func _append(copying span: Span<Element>) {
239 | precondition(self.freeCapacity >= span.count, "Insufficient space to copy the provided span (have space for \(self.freeCapacity) but writing \(span.count))")
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:219:45: error: cannot find type 'ConvertibleToBytes' in scope
217 | }
218 |
219 | package mutating func withOutputSpan<T: ConvertibleToBytes & ConvertibleFromBytes, E: Error, R: ~Copyable>(
| `- error: cannot find type 'ConvertibleToBytes' in scope
220 | of type: T.Type,
221 | _ body: (inout OutputSpan<T>) throws(E) -> R
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet.swift:526:9: error: cannot find 'withTemporaryAllocation' in scope
524 | // Use stack-allocated buffer via appendBitmap to avoid Data heap allocation
525 | var cacheHasher = Hasher()
526 | withTemporaryAllocation(of: UInt8.self, capacity: Self.__kCFBitmapSize) { output in
| `- error: cannot find 'withTemporaryAllocation' in scope
527 | appendBitmap(to: &output)
528 | output.span.withUnsafeBytes { cacheHasher.combine(bytes: $0) }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet.swift:527:13: error: no exact matches in call to instance method 'appendBitmap'
525 | var cacheHasher = Hasher()
526 | withTemporaryAllocation(of: UInt8.self, capacity: Self.__kCFBitmapSize) { output in
527 | appendBitmap(to: &output)
| `- error: no exact matches in call to instance method 'appendBitmap'
528 | output.span.withUnsafeBytes { cacheHasher.combine(bytes: $0) }
529 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageConversionHelpers.swift:135:19: note: candidate expects in-out value of type 'OutputRawSpan' for parameter #2 (got '_')
133 | }
134 |
135 | internal func appendBitmap(ofPlane plane: Int = 0, to output: inout OutputRawSpan) {
| `- note: candidate expects in-out value of type 'OutputRawSpan' for parameter #2 (got '_')
136 | output.withOutputSpan(of: UInt8.self) { typedOutput in
137 | appendBitmap(ofPlane: plane, to: &typedOutput)
:
140 |
141 | // __CFCSetGetBitmap
142 | internal func appendBitmap(ofPlane plane: Int = 0, to output: inout OutputSpan<UInt8>) {
| `- note: candidate expects in-out value of type 'OutputSpan<UInt8>' for parameter #2 (got '_')
143 | let byteCount = min(output.freeCapacity, Self.__kCFBitmapSize)
144 | precondition(byteCount > 0)
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:28: error: cannot suppress 'Copyable' requirement of an associated type
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
18 | associatedtype KeyView: ~Copyable, ~Escapable
19 | associatedtype UnkeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:39: error: cannot suppress 'Escapable' requirement of an associated type
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
18 | associatedtype KeyView: ~Copyable, ~Escapable
19 | associatedtype UnkeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:18:29: error: cannot suppress 'Copyable' requirement of an associated type
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:18:40: error: cannot suppress 'Escapable' requirement of an associated type
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:335:28: error: cannot suppress 'Copyable' requirement of an associated type
333 | /// Emits parse events into an `IterativeParsingDriver`. Every source is a tree walker: emits one top-level value, then advances frame-by-frame until the tree is exhausted.
334 | protocol ParseEventSource<Filter>: ~Copyable, ~Escapable {
335 | associatedtype Filter: ParseEventFilter & ~Copyable = NullFilter
| `- error: cannot suppress 'Copyable' requirement of an associated type
336 | associatedtype Vocabulary: ParseEventVocabulary
337 | /// Per-container state the source maintains for its walk. The driver stores it; the source reads/mutates via `channel.topSourceState`. Default `Void`.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:373:28: error: cannot suppress 'Copyable' requirement of an associated type
371 | associatedtype ValueFragment
372 | associatedtype ContainerFragment = ValueFragment
373 | associatedtype Output: ~Copyable
| `- error: cannot suppress 'Copyable' requirement of an associated type
374 |
375 | // Leaf events. Sink decides whether to compute and append.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:20:26: error: cannot suppress 'Copyable' requirement of an associated type
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:20:26: error: cannot suppress 'Escapable' requirement of an associated type
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:26:146: error: cannot suppress 'Copyable' requirement of an associated type
24 |
25 | /// Drives an iterative parse: routes events from a `ParseEventSource` to a `ParseEventSink`, owns the frame stack, and dispatches to a `ParseEventFilter`.
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:26:146: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
24 |
25 | /// Drives an iterative parse: routes events from a `ParseEventSource` to a `ParseEventSink`, owns the frame stack, and dispatches to a `ParseEventFilter`.
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:28:20: error: cannot find type 'UniqueArray' in scope
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
| `- error: cannot find type 'UniqueArray' in scope
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
30 | var frames: UniqueArray<_Frame>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:29:22: error: cannot find type 'UniqueArray' in scope
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
| `- error: cannot find type 'UniqueArray' in scope
30 | var frames: UniqueArray<_Frame>
31 | /// Set by the driver before every source call; read by `beginUnkeyedContainer`/`beginKeyedContainer` to stamp the pushed child frame's `filterLevel`. `nil` = no filter at this frame.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:30:17: error: cannot find type 'UniqueArray' in scope
28 | var keysArena: UniqueArray<Sink.KeyFragment>
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
30 | var frames: UniqueArray<_Frame>
| `- error: cannot find type 'UniqueArray' in scope
31 | /// Set by the driver before every source call; read by `beginUnkeyedContainer`/`beginKeyedContainer` to stamp the pushed child frame's `filterLevel`. `nil` = no filter at this frame.
32 | var pendingChildFilterLevel: Int?
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:65:140: error: cannot suppress 'Copyable' requirement of an associated type
63 | }
64 |
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:65:140: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
63 | }
64 |
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:67:45: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
68 | do {
69 | pendingChildFilterLevel = filter.rootLevel
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:85:61: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
83 |
84 | /// One step of the outer loop: ask the source to emit the next child of the top frame (respecting `filter`); if the source declines, close the frame.
85 | private mutating func advanceOrFinalizeTopFrame<Filter: ParseEventFilter & ~Copyable>(source: inout Source, filter: borrowing Filter) throws where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
86 | let topIdx = frames.count &- 1
87 | let atLevel = frames[topIdx].filterLevel
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:119:32: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
117 | }
118 |
119 | consuming func run<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink.Output where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
120 | return try runReturningSink(source: source, filter: filter).takeResult()
121 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:124:1: error: no type for 'Source.Filter' can satisfy both 'Source.Filter == NullFilter' and 'Source.Filter : Copyable'
122 | }
123 |
124 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter == NullFilter {
| `- error: no type for 'Source.Filter' can satisfy both 'Source.Filter == NullFilter' and 'Source.Filter : Copyable'
125 | consuming func runReturningSink(source: consuming Source) throws -> Sink {
126 | try self.runReturningSink(source: source, filter: NullFilter())
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:134:102: error: cannot suppress 'Copyable' requirement of an associated type
132 | }
133 |
134 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
135 | typealias Scalar = Sink.Vocabulary.Scalar
136 | typealias KeyView = Sink.Vocabulary.KeyView
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:134:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
132 | }
133 |
134 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
135 | typealias Scalar = Sink.Vocabulary.Scalar
136 | typealias KeyView = Sink.Vocabulary.KeyView
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:313:102: error: cannot suppress 'Copyable' requirement of an associated type
311 | mutating func beginKeyedContainer(cacheKey: Int?) throws { try beginKeyedContainer(cacheKey: cacheKey, sourceState: ()) }}
312 |
313 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.UnkeyedContainerKind == Void {
| `- error: cannot suppress 'Copyable' requirement of an associated type
314 | mutating func endUnkeyedContainer() throws { try endUnkeyedContainer(kind: ()) }
315 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:313:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
311 | mutating func beginKeyedContainer(cacheKey: Int?) throws { try beginKeyedContainer(cacheKey: cacheKey, sourceState: ()) }}
312 |
313 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.UnkeyedContainerKind == Void {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
314 | mutating func endUnkeyedContainer() throws { try endUnkeyedContainer(kind: ()) }
315 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:322:102: error: cannot suppress 'Copyable' requirement of an associated type
320 | }
321 |
322 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.KeyedContainerKind == Void {
| `- error: cannot suppress 'Copyable' requirement of an associated type
323 | mutating func endKeyedContainer() throws { try endKeyedContainer(kind: ()) }
324 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:322:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
320 | }
321 |
322 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.KeyedContainerKind == Void {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
323 | mutating func endKeyedContainer() throws { try endKeyedContainer(kind: ()) }
324 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:359:70: error: cannot suppress 'Copyable' requirement of an associated type
357 | }
358 |
359 | extension ParseEventSource where Self: ~Copyable & ~Escapable, Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
360 | mutating func finish() throws {}
361 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:359:70: error: 'Self.Filter' required to be 'Copyable' but is marked with '~Copyable'
357 | }
358 |
359 | extension ParseEventSource where Self: ~Copyable & ~Escapable, Filter: ~Copyable {
| `- error: 'Self.Filter' required to be 'Copyable' but is marked with '~Copyable'
360 | mutating func finish() throws {}
361 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:443:18: error: cannot find type 'MutableRef' in scope
441 | /// Append-only handle over one of the driver's fragment arenas. Handed to the sink during a leaf/key/finalize call so it can push (or not) without seeing the underlying storage.
442 | struct ParseEventAccumulator<Fragment>: ~Copyable, ~Escapable {
443 | var storage: MutableRef<UniqueArray<Fragment>>
| `- error: cannot find type 'MutableRef' in scope
444 |
445 | @_lifetime(copy storage)
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:446:29: error: cannot find type 'MutableRef' in scope
444 |
445 | @_lifetime(copy storage)
446 | init(storage: consuming MutableRef<UniqueArray<Fragment>>) {
| `- error: cannot find type 'MutableRef' in scope
447 | self.storage = storage
448 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:52:26: error: cannot find 'UniqueArray' in scope
50 | init(sink: consuming Sink) {
51 | self.sink = sink
52 | self.keysArena = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
53 | self.valuesArena = UniqueArray()
54 | self.frames = UniqueArray()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:53:28: error: cannot find 'UniqueArray' in scope
51 | self.sink = sink
52 | self.keysArena = UniqueArray()
53 | self.valuesArena = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
54 | self.frames = UniqueArray()
55 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:54:23: error: cannot find 'UniqueArray' in scope
52 | self.keysArena = UniqueArray()
53 | self.valuesArena = UniqueArray()
54 | self.frames = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:185:68: error: cannot find 'MutableRef' in scope
183 | precondition(!frames[topIdx].hasPendingKey, "parkKey: previous key not paired")
184 |
185 | var acc = ParseEventAccumulator<Sink.KeyFragment>(storage: MutableRef(&keysArena))
| `- error: cannot find 'MutableRef' in scope
186 | try sink.acceptKey(key, into: &acc)
187 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:192:70: error: cannot find 'MutableRef' in scope
190 |
191 | mutating func emitScalar(_ scalar: borrowing Scalar, cacheKey: Int? = nil) throws {
192 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
193 | try sink.acceptScalar(scalar, cacheKey: cacheKey, into: &acc)
194 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:198:70: error: cannot find 'MutableRef' in scope
196 |
197 | mutating func emitNull(cacheKey: Int? = nil) throws {
198 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
199 | try sink.acceptNull(cacheKey: cacheKey, into: &acc)
200 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:206:70: error: cannot find 'MutableRef' in scope
204 | // Roots are never dedup targets; sink cache is empty at parse start.
205 | if frames.isEmpty { return false }
206 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
207 | let hit = try sink.tryEmitCachedForKey(key, into: &acc)
208 | if hit {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:302:70: error: cannot find 'MutableRef' in scope
300 | return
301 | }
302 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
303 | try sink.acceptContainer(container, into: &acc)
304 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:88:8: error: type 'NullFilter' does not conform to protocol 'ParseEventFilter'
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- note: protocol requires nested type 'View'
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
:
86 | }
87 |
88 | struct NullFilter: ParseEventFilter, ~Copyable {
| |- error: type 'NullFilter' does not conform to protocol 'ParseEventFilter'
| `- note: add stubs for conformance
89 | typealias View = NullFilterView
| `- note: possibly intended match 'NullFilter.View' (aka 'NullFilterView') does not conform to 'Copyable'
90 | @inline(__always) var rootLevel: Int? { nil }
91 | @inline(__always) borrowing func nextLevel(after parentLevel: Int?) -> Int? { nil }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:40:6: error: type 'JSONVocabulary' does not conform to protocol 'ParseEventVocabulary'
38 |
39 | /// Event alphabet shared by JSON sources and sinks.
40 | enum JSONVocabulary: ParseEventVocabulary {
| |- error: type 'JSONVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
41 | typealias Scalar = JSONScalar
| `- note: possibly intended match 'JSONVocabulary.Scalar' (aka 'JSONScalar') does not conform to 'Copyable'
42 | typealias KeyView = JSONKeyView
| `- note: possibly intended match 'JSONVocabulary.KeyView' (aka 'JSONKeyView') does not conform to 'Copyable'
43 | }
44 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:77:6: error: type 'XMLPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
75 |
76 | /// Event alphabet shared by XML plist sources and sinks.
77 | enum XMLPlistVocabulary: ParseEventVocabulary {
| |- error: type 'XMLPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
78 | typealias Scalar = XMLPlistScalar
| `- note: possibly intended match 'XMLPlistVocabulary.Scalar' (aka 'XMLPlistScalar') does not conform to 'Copyable'
79 | typealias KeyView = XMLPlistKeyView
| `- note: possibly intended match 'XMLPlistVocabulary.KeyView' (aka 'XMLPlistKeyView') does not conform to 'Copyable'
80 | }
81 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:165:6: error: type 'BPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
163 |
164 | /// Event alphabet shared by bplist sources and sinks.
165 | enum BPlistVocabulary: ParseEventVocabulary {
| |- error: type 'BPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
166 | typealias Scalar = BPlistScalar
| `- note: possibly intended match 'BPlistVocabulary.Scalar' (aka 'BPlistScalar') does not conform to 'Copyable'
167 | typealias KeyView = BPlistKeyView
| `- note: possibly intended match 'BPlistVocabulary.KeyView' (aka 'BPlistKeyView') does not conform to 'Copyable'
168 | typealias UnkeyedContainerKind = BPlistUnkeyedContainerKind
169 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:62:41: error: composition cannot contain '~Copyable' when another member requires 'Copyable'
60 | }
61 |
62 | extension Span where Element: Equatable & ~Copyable {
| `- error: composition cannot contain '~Copyable' when another member requires 'Copyable'
63 | package func firstIndex(of element: borrowing Element) -> Int? {
64 | guard !isEmpty else {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+BitmapManipulationHelpers.swift:24:22: error: value of type 'RawSpan' has no member 'load'
22 | var offset = 0
23 | while offset + wordStride <= span.count {
24 | if bytes.load(fromByteOffset: offset, as: UInt64.self).littleEndian != pattern {
| `- error: value of type 'RawSpan' has no member 'load'
25 | return false
26 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+BitmapManipulationHelpers.swift:130:29: error: value of type 'RawSpan' has no member 'load'
128 |
129 | internal static func _asciiMask(fromBitmap bitmap: Span<UInt8>) -> UInt128 {
130 | return bitmap.bytes.load(fromByteOffset: 0, as: UInt128.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
131 | }
132 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:183:58: error: cannot find type 'ConvertibleToBytes' in scope
181 | }
182 |
183 | mutating func _append<S: Sequence<Element>, Element: ConvertibleToBytes & ConvertibleFromBytes>(copying elements: S) {
| `- error: cannot find type 'ConvertibleToBytes' in scope
184 | let early: Void? = elements.withContiguousStorageIfAvailable { buffer in
185 | self._append(copying: buffer.span.bytes)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+SetAlgebra.swift:672:37: error: value of type 'RawSpan' has no member 'load'
670 | var offset = 0
671 | while offset < Self.__kCFBitmapSize {
672 | let subsetWord = subset.load(fromByteOffset: offset, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
673 | let supersetWord = superset.load(fromByteOffset: offset, as: UInt.self).littleEndian
674 | if (subsetWord & ~supersetWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+SetAlgebra.swift:673:41: error: value of type 'RawSpan' has no member 'load'
671 | while offset < Self.__kCFBitmapSize {
672 | let subsetWord = subset.load(fromByteOffset: offset, as: UInt.self).littleEndian
673 | let supersetWord = superset.load(fromByteOffset: offset, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
674 | if (subsetWord & ~supersetWord) != 0 {
675 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:55:44: error: value of type 'RawSpan' has no member 'load'
53 | var subBodyOffset = numPages
54 | for p in 0..<numPages {
55 | let selfHeader = selfBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
56 | let subHeader = subBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
57 | let selfPartial = (selfHeader != 0 && selfHeader != UInt8.max)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:56:42: error: value of type 'RawSpan' has no member 'load'
54 | for p in 0..<numPages {
55 | let selfHeader = selfBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
56 | let subHeader = subBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
57 | let selfPartial = (selfHeader != 0 && selfHeader != UInt8.max)
58 | let subPartial = (subHeader != 0 && subHeader != UInt8.max)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:68:52: error: value of type 'RawSpan' has no member 'load'
66 | var w = 0
67 | while w < pageSize {
68 | let subWord = subBytes.load(fromByteOffset: subBodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
69 | let selfWord = selfBytes.load(fromByteOffset: selfBodyOffset + w, as: UInt.self).littleEndian
70 | if (subWord & ~selfWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:69:54: error: value of type 'RawSpan' has no member 'load'
67 | while w < pageSize {
68 | let subWord = subBytes.load(fromByteOffset: subBodyOffset + w, as: UInt.self).littleEndian
69 | let selfWord = selfBytes.load(fromByteOffset: selfBodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
70 | if (subWord & ~selfWord) != 0 {
71 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:95:42: error: value of type 'RawSpan' has no member 'load'
93 | var bodyOffset = numPages
94 | for p in 0..<numPages {
95 | let header = subsetBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
96 | if header == 0 { continue }
97 | let pageOffset = p * pageSize
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:101:37: error: value of type 'RawSpan' has no member 'load'
99 | var w = 0
100 | while w < pageSize {
101 | if superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian != UInt.max {
| `- error: value of type 'RawSpan' has no member 'load'
102 | return false
103 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:109:54: error: value of type 'RawSpan' has no member 'load'
107 | var w = 0
108 | while w < pageSize {
109 | let subsetWord = subsetBytes.load(fromByteOffset: bodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
110 | let supersetWord = superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian
111 | if (subsetWord & ~supersetWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:110:53: error: value of type 'RawSpan' has no member 'load'
108 | while w < pageSize {
109 | let subsetWord = subsetBytes.load(fromByteOffset: bodyOffset + w, as: UInt.self).littleEndian
110 | let supersetWord = superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
111 | if (subsetWord & ~supersetWord) != 0 {
112 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:237:38: error: cannot find type 'ConvertibleToBytes' in scope
235 | }
236 |
237 | extension OutputSpan where Element : ConvertibleToBytes & ConvertibleFromBytes {
| `- error: cannot find type 'ConvertibleToBytes' in scope
238 | package mutating func _append(copying span: Span<Element>) {
239 | precondition(self.freeCapacity >= span.count, "Insufficient space to copy the provided span (have space for \(self.freeCapacity) but writing \(span.count))")
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:219:45: error: cannot find type 'ConvertibleToBytes' in scope
217 | }
218 |
219 | package mutating func withOutputSpan<T: ConvertibleToBytes & ConvertibleFromBytes, E: Error, R: ~Copyable>(
| `- error: cannot find type 'ConvertibleToBytes' in scope
220 | of type: T.Type,
221 | _ body: (inout OutputSpan<T>) throws(E) -> R
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet.swift:526:9: error: cannot find 'withTemporaryAllocation' in scope
524 | // Use stack-allocated buffer via appendBitmap to avoid Data heap allocation
525 | var cacheHasher = Hasher()
526 | withTemporaryAllocation(of: UInt8.self, capacity: Self.__kCFBitmapSize) { output in
| `- error: cannot find 'withTemporaryAllocation' in scope
527 | appendBitmap(to: &output)
528 | output.span.withUnsafeBytes { cacheHasher.combine(bytes: $0) }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet.swift:527:13: error: no exact matches in call to instance method 'appendBitmap'
525 | var cacheHasher = Hasher()
526 | withTemporaryAllocation(of: UInt8.self, capacity: Self.__kCFBitmapSize) { output in
527 | appendBitmap(to: &output)
| `- error: no exact matches in call to instance method 'appendBitmap'
528 | output.span.withUnsafeBytes { cacheHasher.combine(bytes: $0) }
529 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageConversionHelpers.swift:135:19: note: candidate expects in-out value of type 'OutputRawSpan' for parameter #2 (got '_')
133 | }
134 |
135 | internal func appendBitmap(ofPlane plane: Int = 0, to output: inout OutputRawSpan) {
| `- note: candidate expects in-out value of type 'OutputRawSpan' for parameter #2 (got '_')
136 | output.withOutputSpan(of: UInt8.self) { typedOutput in
137 | appendBitmap(ofPlane: plane, to: &typedOutput)
:
140 |
141 | // __CFCSetGetBitmap
142 | internal func appendBitmap(ofPlane plane: Int = 0, to output: inout OutputSpan<UInt8>) {
| `- note: candidate expects in-out value of type 'OutputSpan<UInt8>' for parameter #2 (got '_')
143 | let byteCount = min(output.freeCapacity, Self.__kCFBitmapSize)
144 | precondition(byteCount > 0)
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:28: error: cannot suppress 'Copyable' requirement of an associated type
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
18 | associatedtype KeyView: ~Copyable, ~Escapable
19 | associatedtype UnkeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:39: error: cannot suppress 'Escapable' requirement of an associated type
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
18 | associatedtype KeyView: ~Copyable, ~Escapable
19 | associatedtype UnkeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:18:29: error: cannot suppress 'Copyable' requirement of an associated type
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:18:40: error: cannot suppress 'Escapable' requirement of an associated type
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:335:28: error: cannot suppress 'Copyable' requirement of an associated type
333 | /// Emits parse events into an `IterativeParsingDriver`. Every source is a tree walker: emits one top-level value, then advances frame-by-frame until the tree is exhausted.
334 | protocol ParseEventSource<Filter>: ~Copyable, ~Escapable {
335 | associatedtype Filter: ParseEventFilter & ~Copyable = NullFilter
| `- error: cannot suppress 'Copyable' requirement of an associated type
336 | associatedtype Vocabulary: ParseEventVocabulary
337 | /// Per-container state the source maintains for its walk. The driver stores it; the source reads/mutates via `channel.topSourceState`. Default `Void`.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:373:28: error: cannot suppress 'Copyable' requirement of an associated type
371 | associatedtype ValueFragment
372 | associatedtype ContainerFragment = ValueFragment
373 | associatedtype Output: ~Copyable
| `- error: cannot suppress 'Copyable' requirement of an associated type
374 |
375 | // Leaf events. Sink decides whether to compute and append.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:20:26: error: cannot suppress 'Copyable' requirement of an associated type
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:20:26: error: cannot suppress 'Escapable' requirement of an associated type
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:26:146: error: cannot suppress 'Copyable' requirement of an associated type
24 |
25 | /// Drives an iterative parse: routes events from a `ParseEventSource` to a `ParseEventSink`, owns the frame stack, and dispatches to a `ParseEventFilter`.
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:26:146: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
24 |
25 | /// Drives an iterative parse: routes events from a `ParseEventSource` to a `ParseEventSink`, owns the frame stack, and dispatches to a `ParseEventFilter`.
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:28:20: error: cannot find type 'UniqueArray' in scope
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
| `- error: cannot find type 'UniqueArray' in scope
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
30 | var frames: UniqueArray<_Frame>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:29:22: error: cannot find type 'UniqueArray' in scope
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
| `- error: cannot find type 'UniqueArray' in scope
30 | var frames: UniqueArray<_Frame>
31 | /// Set by the driver before every source call; read by `beginUnkeyedContainer`/`beginKeyedContainer` to stamp the pushed child frame's `filterLevel`. `nil` = no filter at this frame.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:30:17: error: cannot find type 'UniqueArray' in scope
28 | var keysArena: UniqueArray<Sink.KeyFragment>
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
30 | var frames: UniqueArray<_Frame>
| `- error: cannot find type 'UniqueArray' in scope
31 | /// Set by the driver before every source call; read by `beginUnkeyedContainer`/`beginKeyedContainer` to stamp the pushed child frame's `filterLevel`. `nil` = no filter at this frame.
32 | var pendingChildFilterLevel: Int?
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:65:140: error: cannot suppress 'Copyable' requirement of an associated type
63 | }
64 |
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:65:140: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
63 | }
64 |
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:67:45: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
68 | do {
69 | pendingChildFilterLevel = filter.rootLevel
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:85:61: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
83 |
84 | /// One step of the outer loop: ask the source to emit the next child of the top frame (respecting `filter`); if the source declines, close the frame.
85 | private mutating func advanceOrFinalizeTopFrame<Filter: ParseEventFilter & ~Copyable>(source: inout Source, filter: borrowing Filter) throws where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
86 | let topIdx = frames.count &- 1
87 | let atLevel = frames[topIdx].filterLevel
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:119:32: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
117 | }
118 |
119 | consuming func run<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink.Output where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
120 | return try runReturningSink(source: source, filter: filter).takeResult()
121 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:124:1: error: no type for 'Source.Filter' can satisfy both 'Source.Filter == NullFilter' and 'Source.Filter : Copyable'
122 | }
123 |
124 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter == NullFilter {
| `- error: no type for 'Source.Filter' can satisfy both 'Source.Filter == NullFilter' and 'Source.Filter : Copyable'
125 | consuming func runReturningSink(source: consuming Source) throws -> Sink {
126 | try self.runReturningSink(source: source, filter: NullFilter())
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:134:102: error: cannot suppress 'Copyable' requirement of an associated type
132 | }
133 |
134 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
135 | typealias Scalar = Sink.Vocabulary.Scalar
136 | typealias KeyView = Sink.Vocabulary.KeyView
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:134:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
132 | }
133 |
134 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
135 | typealias Scalar = Sink.Vocabulary.Scalar
136 | typealias KeyView = Sink.Vocabulary.KeyView
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:313:102: error: cannot suppress 'Copyable' requirement of an associated type
311 | mutating func beginKeyedContainer(cacheKey: Int?) throws { try beginKeyedContainer(cacheKey: cacheKey, sourceState: ()) }}
312 |
313 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.UnkeyedContainerKind == Void {
| `- error: cannot suppress 'Copyable' requirement of an associated type
314 | mutating func endUnkeyedContainer() throws { try endUnkeyedContainer(kind: ()) }
315 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:313:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
311 | mutating func beginKeyedContainer(cacheKey: Int?) throws { try beginKeyedContainer(cacheKey: cacheKey, sourceState: ()) }}
312 |
313 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.UnkeyedContainerKind == Void {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
314 | mutating func endUnkeyedContainer() throws { try endUnkeyedContainer(kind: ()) }
315 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:322:102: error: cannot suppress 'Copyable' requirement of an associated type
320 | }
321 |
322 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.KeyedContainerKind == Void {
| `- error: cannot suppress 'Copyable' requirement of an associated type
323 | mutating func endKeyedContainer() throws { try endKeyedContainer(kind: ()) }
324 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:322:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
320 | }
321 |
322 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.KeyedContainerKind == Void {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
323 | mutating func endKeyedContainer() throws { try endKeyedContainer(kind: ()) }
324 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:359:70: error: cannot suppress 'Copyable' requirement of an associated type
357 | }
358 |
359 | extension ParseEventSource where Self: ~Copyable & ~Escapable, Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
360 | mutating func finish() throws {}
361 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:359:70: error: 'Self.Filter' required to be 'Copyable' but is marked with '~Copyable'
357 | }
358 |
359 | extension ParseEventSource where Self: ~Copyable & ~Escapable, Filter: ~Copyable {
| `- error: 'Self.Filter' required to be 'Copyable' but is marked with '~Copyable'
360 | mutating func finish() throws {}
361 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:443:18: error: cannot find type 'MutableRef' in scope
441 | /// Append-only handle over one of the driver's fragment arenas. Handed to the sink during a leaf/key/finalize call so it can push (or not) without seeing the underlying storage.
442 | struct ParseEventAccumulator<Fragment>: ~Copyable, ~Escapable {
443 | var storage: MutableRef<UniqueArray<Fragment>>
| `- error: cannot find type 'MutableRef' in scope
444 |
445 | @_lifetime(copy storage)
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:446:29: error: cannot find type 'MutableRef' in scope
444 |
445 | @_lifetime(copy storage)
446 | init(storage: consuming MutableRef<UniqueArray<Fragment>>) {
| `- error: cannot find type 'MutableRef' in scope
447 | self.storage = storage
448 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:52:26: error: cannot find 'UniqueArray' in scope
50 | init(sink: consuming Sink) {
51 | self.sink = sink
52 | self.keysArena = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
53 | self.valuesArena = UniqueArray()
54 | self.frames = UniqueArray()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:53:28: error: cannot find 'UniqueArray' in scope
51 | self.sink = sink
52 | self.keysArena = UniqueArray()
53 | self.valuesArena = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
54 | self.frames = UniqueArray()
55 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:54:23: error: cannot find 'UniqueArray' in scope
52 | self.keysArena = UniqueArray()
53 | self.valuesArena = UniqueArray()
54 | self.frames = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:185:68: error: cannot find 'MutableRef' in scope
183 | precondition(!frames[topIdx].hasPendingKey, "parkKey: previous key not paired")
184 |
185 | var acc = ParseEventAccumulator<Sink.KeyFragment>(storage: MutableRef(&keysArena))
| `- error: cannot find 'MutableRef' in scope
186 | try sink.acceptKey(key, into: &acc)
187 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:192:70: error: cannot find 'MutableRef' in scope
190 |
191 | mutating func emitScalar(_ scalar: borrowing Scalar, cacheKey: Int? = nil) throws {
192 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
193 | try sink.acceptScalar(scalar, cacheKey: cacheKey, into: &acc)
194 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:198:70: error: cannot find 'MutableRef' in scope
196 |
197 | mutating func emitNull(cacheKey: Int? = nil) throws {
198 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
199 | try sink.acceptNull(cacheKey: cacheKey, into: &acc)
200 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:206:70: error: cannot find 'MutableRef' in scope
204 | // Roots are never dedup targets; sink cache is empty at parse start.
205 | if frames.isEmpty { return false }
206 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
207 | let hit = try sink.tryEmitCachedForKey(key, into: &acc)
208 | if hit {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:302:70: error: cannot find 'MutableRef' in scope
300 | return
301 | }
302 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
303 | try sink.acceptContainer(container, into: &acc)
304 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:88:8: error: type 'NullFilter' does not conform to protocol 'ParseEventFilter'
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- note: protocol requires nested type 'View'
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
:
86 | }
87 |
88 | struct NullFilter: ParseEventFilter, ~Copyable {
| |- error: type 'NullFilter' does not conform to protocol 'ParseEventFilter'
| `- note: add stubs for conformance
89 | typealias View = NullFilterView
| `- note: possibly intended match 'NullFilter.View' (aka 'NullFilterView') does not conform to 'Copyable'
90 | @inline(__always) var rootLevel: Int? { nil }
91 | @inline(__always) borrowing func nextLevel(after parentLevel: Int?) -> Int? { nil }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:40:6: error: type 'JSONVocabulary' does not conform to protocol 'ParseEventVocabulary'
38 |
39 | /// Event alphabet shared by JSON sources and sinks.
40 | enum JSONVocabulary: ParseEventVocabulary {
| |- error: type 'JSONVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
41 | typealias Scalar = JSONScalar
| `- note: possibly intended match 'JSONVocabulary.Scalar' (aka 'JSONScalar') does not conform to 'Copyable'
42 | typealias KeyView = JSONKeyView
| `- note: possibly intended match 'JSONVocabulary.KeyView' (aka 'JSONKeyView') does not conform to 'Copyable'
43 | }
44 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:77:6: error: type 'XMLPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
75 |
76 | /// Event alphabet shared by XML plist sources and sinks.
77 | enum XMLPlistVocabulary: ParseEventVocabulary {
| |- error: type 'XMLPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
78 | typealias Scalar = XMLPlistScalar
| `- note: possibly intended match 'XMLPlistVocabulary.Scalar' (aka 'XMLPlistScalar') does not conform to 'Copyable'
79 | typealias KeyView = XMLPlistKeyView
| `- note: possibly intended match 'XMLPlistVocabulary.KeyView' (aka 'XMLPlistKeyView') does not conform to 'Copyable'
80 | }
81 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:165:6: error: type 'BPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
163 |
164 | /// Event alphabet shared by bplist sources and sinks.
165 | enum BPlistVocabulary: ParseEventVocabulary {
| |- error: type 'BPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
166 | typealias Scalar = BPlistScalar
| `- note: possibly intended match 'BPlistVocabulary.Scalar' (aka 'BPlistScalar') does not conform to 'Copyable'
167 | typealias KeyView = BPlistKeyView
| `- note: possibly intended match 'BPlistVocabulary.KeyView' (aka 'BPlistKeyView') does not conform to 'Copyable'
168 | typealias UnkeyedContainerKind = BPlistUnkeyedContainerKind
169 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:62:41: error: composition cannot contain '~Copyable' when another member requires 'Copyable'
60 | }
61 |
62 | extension Span where Element: Equatable & ~Copyable {
| `- error: composition cannot contain '~Copyable' when another member requires 'Copyable'
63 | package func firstIndex(of element: borrowing Element) -> Int? {
64 | guard !isEmpty else {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+BitmapManipulationHelpers.swift:24:22: error: value of type 'RawSpan' has no member 'load'
22 | var offset = 0
23 | while offset + wordStride <= span.count {
24 | if bytes.load(fromByteOffset: offset, as: UInt64.self).littleEndian != pattern {
| `- error: value of type 'RawSpan' has no member 'load'
25 | return false
26 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+BitmapManipulationHelpers.swift:130:29: error: value of type 'RawSpan' has no member 'load'
128 |
129 | internal static func _asciiMask(fromBitmap bitmap: Span<UInt8>) -> UInt128 {
130 | return bitmap.bytes.load(fromByteOffset: 0, as: UInt128.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
131 | }
132 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:183:58: error: cannot find type 'ConvertibleToBytes' in scope
181 | }
182 |
183 | mutating func _append<S: Sequence<Element>, Element: ConvertibleToBytes & ConvertibleFromBytes>(copying elements: S) {
| `- error: cannot find type 'ConvertibleToBytes' in scope
184 | let early: Void? = elements.withContiguousStorageIfAvailable { buffer in
185 | self._append(copying: buffer.span.bytes)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+SetAlgebra.swift:672:37: error: value of type 'RawSpan' has no member 'load'
670 | var offset = 0
671 | while offset < Self.__kCFBitmapSize {
672 | let subsetWord = subset.load(fromByteOffset: offset, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
673 | let supersetWord = superset.load(fromByteOffset: offset, as: UInt.self).littleEndian
674 | if (subsetWord & ~supersetWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+SetAlgebra.swift:673:41: error: value of type 'RawSpan' has no member 'load'
671 | while offset < Self.__kCFBitmapSize {
672 | let subsetWord = subset.load(fromByteOffset: offset, as: UInt.self).littleEndian
673 | let supersetWord = superset.load(fromByteOffset: offset, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
674 | if (subsetWord & ~supersetWord) != 0 {
675 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:55:44: error: value of type 'RawSpan' has no member 'load'
53 | var subBodyOffset = numPages
54 | for p in 0..<numPages {
55 | let selfHeader = selfBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
56 | let subHeader = subBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
57 | let selfPartial = (selfHeader != 0 && selfHeader != UInt8.max)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:56:42: error: value of type 'RawSpan' has no member 'load'
54 | for p in 0..<numPages {
55 | let selfHeader = selfBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
56 | let subHeader = subBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
57 | let selfPartial = (selfHeader != 0 && selfHeader != UInt8.max)
58 | let subPartial = (subHeader != 0 && subHeader != UInt8.max)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:68:52: error: value of type 'RawSpan' has no member 'load'
66 | var w = 0
67 | while w < pageSize {
68 | let subWord = subBytes.load(fromByteOffset: subBodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
69 | let selfWord = selfBytes.load(fromByteOffset: selfBodyOffset + w, as: UInt.self).littleEndian
70 | if (subWord & ~selfWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:69:54: error: value of type 'RawSpan' has no member 'load'
67 | while w < pageSize {
68 | let subWord = subBytes.load(fromByteOffset: subBodyOffset + w, as: UInt.self).littleEndian
69 | let selfWord = selfBytes.load(fromByteOffset: selfBodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
70 | if (subWord & ~selfWord) != 0 {
71 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:95:42: error: value of type 'RawSpan' has no member 'load'
93 | var bodyOffset = numPages
94 | for p in 0..<numPages {
95 | let header = subsetBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
96 | if header == 0 { continue }
97 | let pageOffset = p * pageSize
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:101:37: error: value of type 'RawSpan' has no member 'load'
99 | var w = 0
100 | while w < pageSize {
101 | if superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian != UInt.max {
| `- error: value of type 'RawSpan' has no member 'load'
102 | return false
103 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:109:54: error: value of type 'RawSpan' has no member 'load'
107 | var w = 0
108 | while w < pageSize {
109 | let subsetWord = subsetBytes.load(fromByteOffset: bodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
110 | let supersetWord = superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian
111 | if (subsetWord & ~supersetWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:110:53: error: value of type 'RawSpan' has no member 'load'
108 | while w < pageSize {
109 | let subsetWord = subsetBytes.load(fromByteOffset: bodyOffset + w, as: UInt.self).littleEndian
110 | let supersetWord = superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
111 | if (subsetWord & ~supersetWord) != 0 {
112 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:237:38: error: cannot find type 'ConvertibleToBytes' in scope
235 | }
236 |
237 | extension OutputSpan where Element : ConvertibleToBytes & ConvertibleFromBytes {
| `- error: cannot find type 'ConvertibleToBytes' in scope
238 | package mutating func _append(copying span: Span<Element>) {
239 | precondition(self.freeCapacity >= span.count, "Insufficient space to copy the provided span (have space for \(self.freeCapacity) but writing \(span.count))")
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:219:45: error: cannot find type 'ConvertibleToBytes' in scope
217 | }
218 |
219 | package mutating func withOutputSpan<T: ConvertibleToBytes & ConvertibleFromBytes, E: Error, R: ~Copyable>(
| `- error: cannot find type 'ConvertibleToBytes' in scope
220 | of type: T.Type,
221 | _ body: (inout OutputSpan<T>) throws(E) -> R
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet.swift:526:9: error: cannot find 'withTemporaryAllocation' in scope
524 | // Use stack-allocated buffer via appendBitmap to avoid Data heap allocation
525 | var cacheHasher = Hasher()
526 | withTemporaryAllocation(of: UInt8.self, capacity: Self.__kCFBitmapSize) { output in
| `- error: cannot find 'withTemporaryAllocation' in scope
527 | appendBitmap(to: &output)
528 | output.span.withUnsafeBytes { cacheHasher.combine(bytes: $0) }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet.swift:527:13: error: no exact matches in call to instance method 'appendBitmap'
525 | var cacheHasher = Hasher()
526 | withTemporaryAllocation(of: UInt8.self, capacity: Self.__kCFBitmapSize) { output in
527 | appendBitmap(to: &output)
| `- error: no exact matches in call to instance method 'appendBitmap'
528 | output.span.withUnsafeBytes { cacheHasher.combine(bytes: $0) }
529 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageConversionHelpers.swift:135:19: note: candidate expects in-out value of type 'OutputRawSpan' for parameter #2 (got '_')
133 | }
134 |
135 | internal func appendBitmap(ofPlane plane: Int = 0, to output: inout OutputRawSpan) {
| `- note: candidate expects in-out value of type 'OutputRawSpan' for parameter #2 (got '_')
136 | output.withOutputSpan(of: UInt8.self) { typedOutput in
137 | appendBitmap(ofPlane: plane, to: &typedOutput)
:
140 |
141 | // __CFCSetGetBitmap
142 | internal func appendBitmap(ofPlane plane: Int = 0, to output: inout OutputSpan<UInt8>) {
| `- note: candidate expects in-out value of type 'OutputSpan<UInt8>' for parameter #2 (got '_')
143 | let byteCount = min(output.freeCapacity, Self.__kCFBitmapSize)
144 | precondition(byteCount > 0)
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:28: error: cannot suppress 'Copyable' requirement of an associated type
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
18 | associatedtype KeyView: ~Copyable, ~Escapable
19 | associatedtype UnkeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:39: error: cannot suppress 'Escapable' requirement of an associated type
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
18 | associatedtype KeyView: ~Copyable, ~Escapable
19 | associatedtype UnkeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:18:29: error: cannot suppress 'Copyable' requirement of an associated type
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:18:40: error: cannot suppress 'Escapable' requirement of an associated type
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:335:28: error: cannot suppress 'Copyable' requirement of an associated type
333 | /// Emits parse events into an `IterativeParsingDriver`. Every source is a tree walker: emits one top-level value, then advances frame-by-frame until the tree is exhausted.
334 | protocol ParseEventSource<Filter>: ~Copyable, ~Escapable {
335 | associatedtype Filter: ParseEventFilter & ~Copyable = NullFilter
| `- error: cannot suppress 'Copyable' requirement of an associated type
336 | associatedtype Vocabulary: ParseEventVocabulary
337 | /// Per-container state the source maintains for its walk. The driver stores it; the source reads/mutates via `channel.topSourceState`. Default `Void`.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:373:28: error: cannot suppress 'Copyable' requirement of an associated type
371 | associatedtype ValueFragment
372 | associatedtype ContainerFragment = ValueFragment
373 | associatedtype Output: ~Copyable
| `- error: cannot suppress 'Copyable' requirement of an associated type
374 |
375 | // Leaf events. Sink decides whether to compute and append.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:20:26: error: cannot suppress 'Copyable' requirement of an associated type
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:20:26: error: cannot suppress 'Escapable' requirement of an associated type
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:26:146: error: cannot suppress 'Copyable' requirement of an associated type
24 |
25 | /// Drives an iterative parse: routes events from a `ParseEventSource` to a `ParseEventSink`, owns the frame stack, and dispatches to a `ParseEventFilter`.
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:26:146: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
24 |
25 | /// Drives an iterative parse: routes events from a `ParseEventSource` to a `ParseEventSink`, owns the frame stack, and dispatches to a `ParseEventFilter`.
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:28:20: error: cannot find type 'UniqueArray' in scope
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
| `- error: cannot find type 'UniqueArray' in scope
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
30 | var frames: UniqueArray<_Frame>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:29:22: error: cannot find type 'UniqueArray' in scope
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
| `- error: cannot find type 'UniqueArray' in scope
30 | var frames: UniqueArray<_Frame>
31 | /// Set by the driver before every source call; read by `beginUnkeyedContainer`/`beginKeyedContainer` to stamp the pushed child frame's `filterLevel`. `nil` = no filter at this frame.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:30:17: error: cannot find type 'UniqueArray' in scope
28 | var keysArena: UniqueArray<Sink.KeyFragment>
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
30 | var frames: UniqueArray<_Frame>
| `- error: cannot find type 'UniqueArray' in scope
31 | /// Set by the driver before every source call; read by `beginUnkeyedContainer`/`beginKeyedContainer` to stamp the pushed child frame's `filterLevel`. `nil` = no filter at this frame.
32 | var pendingChildFilterLevel: Int?
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:65:140: error: cannot suppress 'Copyable' requirement of an associated type
63 | }
64 |
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:65:140: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
63 | }
64 |
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:67:45: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
68 | do {
69 | pendingChildFilterLevel = filter.rootLevel
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:85:61: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
83 |
84 | /// One step of the outer loop: ask the source to emit the next child of the top frame (respecting `filter`); if the source declines, close the frame.
85 | private mutating func advanceOrFinalizeTopFrame<Filter: ParseEventFilter & ~Copyable>(source: inout Source, filter: borrowing Filter) throws where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
86 | let topIdx = frames.count &- 1
87 | let atLevel = frames[topIdx].filterLevel
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:119:32: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
117 | }
118 |
119 | consuming func run<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink.Output where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
120 | return try runReturningSink(source: source, filter: filter).takeResult()
121 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:124:1: error: no type for 'Source.Filter' can satisfy both 'Source.Filter == NullFilter' and 'Source.Filter : Copyable'
122 | }
123 |
124 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter == NullFilter {
| `- error: no type for 'Source.Filter' can satisfy both 'Source.Filter == NullFilter' and 'Source.Filter : Copyable'
125 | consuming func runReturningSink(source: consuming Source) throws -> Sink {
126 | try self.runReturningSink(source: source, filter: NullFilter())
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:134:102: error: cannot suppress 'Copyable' requirement of an associated type
132 | }
133 |
134 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
135 | typealias Scalar = Sink.Vocabulary.Scalar
136 | typealias KeyView = Sink.Vocabulary.KeyView
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:134:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
132 | }
133 |
134 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
135 | typealias Scalar = Sink.Vocabulary.Scalar
136 | typealias KeyView = Sink.Vocabulary.KeyView
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:313:102: error: cannot suppress 'Copyable' requirement of an associated type
311 | mutating func beginKeyedContainer(cacheKey: Int?) throws { try beginKeyedContainer(cacheKey: cacheKey, sourceState: ()) }}
312 |
313 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.UnkeyedContainerKind == Void {
| `- error: cannot suppress 'Copyable' requirement of an associated type
314 | mutating func endUnkeyedContainer() throws { try endUnkeyedContainer(kind: ()) }
315 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:313:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
311 | mutating func beginKeyedContainer(cacheKey: Int?) throws { try beginKeyedContainer(cacheKey: cacheKey, sourceState: ()) }}
312 |
313 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.UnkeyedContainerKind == Void {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
314 | mutating func endUnkeyedContainer() throws { try endUnkeyedContainer(kind: ()) }
315 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:322:102: error: cannot suppress 'Copyable' requirement of an associated type
320 | }
321 |
322 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.KeyedContainerKind == Void {
| `- error: cannot suppress 'Copyable' requirement of an associated type
323 | mutating func endKeyedContainer() throws { try endKeyedContainer(kind: ()) }
324 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:322:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
320 | }
321 |
322 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.KeyedContainerKind == Void {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
323 | mutating func endKeyedContainer() throws { try endKeyedContainer(kind: ()) }
324 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:359:70: error: cannot suppress 'Copyable' requirement of an associated type
357 | }
358 |
359 | extension ParseEventSource where Self: ~Copyable & ~Escapable, Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
360 | mutating func finish() throws {}
361 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:359:70: error: 'Self.Filter' required to be 'Copyable' but is marked with '~Copyable'
357 | }
358 |
359 | extension ParseEventSource where Self: ~Copyable & ~Escapable, Filter: ~Copyable {
| `- error: 'Self.Filter' required to be 'Copyable' but is marked with '~Copyable'
360 | mutating func finish() throws {}
361 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:443:18: error: cannot find type 'MutableRef' in scope
441 | /// Append-only handle over one of the driver's fragment arenas. Handed to the sink during a leaf/key/finalize call so it can push (or not) without seeing the underlying storage.
442 | struct ParseEventAccumulator<Fragment>: ~Copyable, ~Escapable {
443 | var storage: MutableRef<UniqueArray<Fragment>>
| `- error: cannot find type 'MutableRef' in scope
444 |
445 | @_lifetime(copy storage)
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:446:29: error: cannot find type 'MutableRef' in scope
444 |
445 | @_lifetime(copy storage)
446 | init(storage: consuming MutableRef<UniqueArray<Fragment>>) {
| `- error: cannot find type 'MutableRef' in scope
447 | self.storage = storage
448 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:52:26: error: cannot find 'UniqueArray' in scope
50 | init(sink: consuming Sink) {
51 | self.sink = sink
52 | self.keysArena = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
53 | self.valuesArena = UniqueArray()
54 | self.frames = UniqueArray()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:53:28: error: cannot find 'UniqueArray' in scope
51 | self.sink = sink
52 | self.keysArena = UniqueArray()
53 | self.valuesArena = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
54 | self.frames = UniqueArray()
55 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:54:23: error: cannot find 'UniqueArray' in scope
52 | self.keysArena = UniqueArray()
53 | self.valuesArena = UniqueArray()
54 | self.frames = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:185:68: error: cannot find 'MutableRef' in scope
183 | precondition(!frames[topIdx].hasPendingKey, "parkKey: previous key not paired")
184 |
185 | var acc = ParseEventAccumulator<Sink.KeyFragment>(storage: MutableRef(&keysArena))
| `- error: cannot find 'MutableRef' in scope
186 | try sink.acceptKey(key, into: &acc)
187 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:192:70: error: cannot find 'MutableRef' in scope
190 |
191 | mutating func emitScalar(_ scalar: borrowing Scalar, cacheKey: Int? = nil) throws {
192 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
193 | try sink.acceptScalar(scalar, cacheKey: cacheKey, into: &acc)
194 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:198:70: error: cannot find 'MutableRef' in scope
196 |
197 | mutating func emitNull(cacheKey: Int? = nil) throws {
198 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
199 | try sink.acceptNull(cacheKey: cacheKey, into: &acc)
200 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:206:70: error: cannot find 'MutableRef' in scope
204 | // Roots are never dedup targets; sink cache is empty at parse start.
205 | if frames.isEmpty { return false }
206 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
207 | let hit = try sink.tryEmitCachedForKey(key, into: &acc)
208 | if hit {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:302:70: error: cannot find 'MutableRef' in scope
300 | return
301 | }
302 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
303 | try sink.acceptContainer(container, into: &acc)
304 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:88:8: error: type 'NullFilter' does not conform to protocol 'ParseEventFilter'
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- note: protocol requires nested type 'View'
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
:
86 | }
87 |
88 | struct NullFilter: ParseEventFilter, ~Copyable {
| |- error: type 'NullFilter' does not conform to protocol 'ParseEventFilter'
| `- note: add stubs for conformance
89 | typealias View = NullFilterView
| `- note: possibly intended match 'NullFilter.View' (aka 'NullFilterView') does not conform to 'Copyable'
90 | @inline(__always) var rootLevel: Int? { nil }
91 | @inline(__always) borrowing func nextLevel(after parentLevel: Int?) -> Int? { nil }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:40:6: error: type 'JSONVocabulary' does not conform to protocol 'ParseEventVocabulary'
38 |
39 | /// Event alphabet shared by JSON sources and sinks.
40 | enum JSONVocabulary: ParseEventVocabulary {
| |- error: type 'JSONVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
41 | typealias Scalar = JSONScalar
| `- note: possibly intended match 'JSONVocabulary.Scalar' (aka 'JSONScalar') does not conform to 'Copyable'
42 | typealias KeyView = JSONKeyView
| `- note: possibly intended match 'JSONVocabulary.KeyView' (aka 'JSONKeyView') does not conform to 'Copyable'
43 | }
44 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:77:6: error: type 'XMLPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
75 |
76 | /// Event alphabet shared by XML plist sources and sinks.
77 | enum XMLPlistVocabulary: ParseEventVocabulary {
| |- error: type 'XMLPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
78 | typealias Scalar = XMLPlistScalar
| `- note: possibly intended match 'XMLPlistVocabulary.Scalar' (aka 'XMLPlistScalar') does not conform to 'Copyable'
79 | typealias KeyView = XMLPlistKeyView
| `- note: possibly intended match 'XMLPlistVocabulary.KeyView' (aka 'XMLPlistKeyView') does not conform to 'Copyable'
80 | }
81 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:165:6: error: type 'BPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
163 |
164 | /// Event alphabet shared by bplist sources and sinks.
165 | enum BPlistVocabulary: ParseEventVocabulary {
| |- error: type 'BPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
166 | typealias Scalar = BPlistScalar
| `- note: possibly intended match 'BPlistVocabulary.Scalar' (aka 'BPlistScalar') does not conform to 'Copyable'
167 | typealias KeyView = BPlistKeyView
| `- note: possibly intended match 'BPlistVocabulary.KeyView' (aka 'BPlistKeyView') does not conform to 'Copyable'
168 | typealias UnkeyedContainerKind = BPlistUnkeyedContainerKind
169 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:62:41: error: composition cannot contain '~Copyable' when another member requires 'Copyable'
60 | }
61 |
62 | extension Span where Element: Equatable & ~Copyable {
| `- error: composition cannot contain '~Copyable' when another member requires 'Copyable'
63 | package func firstIndex(of element: borrowing Element) -> Int? {
64 | guard !isEmpty else {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+BitmapManipulationHelpers.swift:24:22: error: value of type 'RawSpan' has no member 'load'
22 | var offset = 0
23 | while offset + wordStride <= span.count {
24 | if bytes.load(fromByteOffset: offset, as: UInt64.self).littleEndian != pattern {
| `- error: value of type 'RawSpan' has no member 'load'
25 | return false
26 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+BitmapManipulationHelpers.swift:130:29: error: value of type 'RawSpan' has no member 'load'
128 |
129 | internal static func _asciiMask(fromBitmap bitmap: Span<UInt8>) -> UInt128 {
130 | return bitmap.bytes.load(fromByteOffset: 0, as: UInt128.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
131 | }
132 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:183:58: error: cannot find type 'ConvertibleToBytes' in scope
181 | }
182 |
183 | mutating func _append<S: Sequence<Element>, Element: ConvertibleToBytes & ConvertibleFromBytes>(copying elements: S) {
| `- error: cannot find type 'ConvertibleToBytes' in scope
184 | let early: Void? = elements.withContiguousStorageIfAvailable { buffer in
185 | self._append(copying: buffer.span.bytes)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+SetAlgebra.swift:672:37: error: value of type 'RawSpan' has no member 'load'
670 | var offset = 0
671 | while offset < Self.__kCFBitmapSize {
672 | let subsetWord = subset.load(fromByteOffset: offset, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
673 | let supersetWord = superset.load(fromByteOffset: offset, as: UInt.self).littleEndian
674 | if (subsetWord & ~supersetWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+SetAlgebra.swift:673:41: error: value of type 'RawSpan' has no member 'load'
671 | while offset < Self.__kCFBitmapSize {
672 | let subsetWord = subset.load(fromByteOffset: offset, as: UInt.self).littleEndian
673 | let supersetWord = superset.load(fromByteOffset: offset, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
674 | if (subsetWord & ~supersetWord) != 0 {
675 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:55:44: error: value of type 'RawSpan' has no member 'load'
53 | var subBodyOffset = numPages
54 | for p in 0..<numPages {
55 | let selfHeader = selfBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
56 | let subHeader = subBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
57 | let selfPartial = (selfHeader != 0 && selfHeader != UInt8.max)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:56:42: error: value of type 'RawSpan' has no member 'load'
54 | for p in 0..<numPages {
55 | let selfHeader = selfBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
56 | let subHeader = subBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
57 | let selfPartial = (selfHeader != 0 && selfHeader != UInt8.max)
58 | let subPartial = (subHeader != 0 && subHeader != UInt8.max)
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:68:52: error: value of type 'RawSpan' has no member 'load'
66 | var w = 0
67 | while w < pageSize {
68 | let subWord = subBytes.load(fromByteOffset: subBodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
69 | let selfWord = selfBytes.load(fromByteOffset: selfBodyOffset + w, as: UInt.self).littleEndian
70 | if (subWord & ~selfWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:69:54: error: value of type 'RawSpan' has no member 'load'
67 | while w < pageSize {
68 | let subWord = subBytes.load(fromByteOffset: subBodyOffset + w, as: UInt.self).littleEndian
69 | let selfWord = selfBytes.load(fromByteOffset: selfBodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
70 | if (subWord & ~selfWord) != 0 {
71 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:95:42: error: value of type 'RawSpan' has no member 'load'
93 | var bodyOffset = numPages
94 | for p in 0..<numPages {
95 | let header = subsetBytes.load(fromByteOffset: p, as: UInt8.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
96 | if header == 0 { continue }
97 | let pageOffset = p * pageSize
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:101:37: error: value of type 'RawSpan' has no member 'load'
99 | var w = 0
100 | while w < pageSize {
101 | if superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian != UInt.max {
| `- error: value of type 'RawSpan' has no member 'load'
102 | return false
103 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:109:54: error: value of type 'RawSpan' has no member 'load'
107 | var w = 0
108 | while w < pageSize {
109 | let subsetWord = subsetBytes.load(fromByteOffset: bodyOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
110 | let supersetWord = superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian
111 | if (subsetWord & ~supersetWord) != 0 {
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageCompactBitmap.swift:110:53: error: value of type 'RawSpan' has no member 'load'
108 | while w < pageSize {
109 | let subsetWord = subsetBytes.load(fromByteOffset: bodyOffset + w, as: UInt.self).littleEndian
110 | let supersetWord = superset.load(fromByteOffset: pageOffset + w, as: UInt.self).littleEndian
| `- error: value of type 'RawSpan' has no member 'load'
111 | if (subsetWord & ~supersetWord) != 0 {
112 | return false
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:237:38: error: cannot find type 'ConvertibleToBytes' in scope
235 | }
236 |
237 | extension OutputSpan where Element : ConvertibleToBytes & ConvertibleFromBytes {
| `- error: cannot find type 'ConvertibleToBytes' in scope
238 | package mutating func _append(copying span: Span<Element>) {
239 | precondition(self.freeCapacity >= span.count, "Insufficient space to copy the provided span (have space for \(self.freeCapacity) but writing \(span.count))")
/host/spi-builder-workspace/Sources/FoundationEssentials/Span+Utils.swift:219:45: error: cannot find type 'ConvertibleToBytes' in scope
217 | }
218 |
219 | package mutating func withOutputSpan<T: ConvertibleToBytes & ConvertibleFromBytes, E: Error, R: ~Copyable>(
| `- error: cannot find type 'ConvertibleToBytes' in scope
220 | of type: T.Type,
221 | _ body: (inout OutputSpan<T>) throws(E) -> R
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet.swift:526:9: error: cannot find 'withTemporaryAllocation' in scope
524 | // Use stack-allocated buffer via appendBitmap to avoid Data heap allocation
525 | var cacheHasher = Hasher()
526 | withTemporaryAllocation(of: UInt8.self, capacity: Self.__kCFBitmapSize) { output in
| `- error: cannot find 'withTemporaryAllocation' in scope
527 | appendBitmap(to: &output)
528 | output.span.withUnsafeBytes { cacheHasher.combine(bytes: $0) }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet.swift:527:13: error: no exact matches in call to instance method 'appendBitmap'
525 | var cacheHasher = Hasher()
526 | withTemporaryAllocation(of: UInt8.self, capacity: Self.__kCFBitmapSize) { output in
527 | appendBitmap(to: &output)
| `- error: no exact matches in call to instance method 'appendBitmap'
528 | output.span.withUnsafeBytes { cacheHasher.combine(bytes: $0) }
529 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/CharacterSet/_CharacterSet+StorageConversionHelpers.swift:135:19: note: candidate expects in-out value of type 'OutputRawSpan' for parameter #2 (got '_')
133 | }
134 |
135 | internal func appendBitmap(ofPlane plane: Int = 0, to output: inout OutputRawSpan) {
| `- note: candidate expects in-out value of type 'OutputRawSpan' for parameter #2 (got '_')
136 | output.withOutputSpan(of: UInt8.self) { typedOutput in
137 | appendBitmap(ofPlane: plane, to: &typedOutput)
:
140 |
141 | // __CFCSetGetBitmap
142 | internal func appendBitmap(ofPlane plane: Int = 0, to output: inout OutputSpan<UInt8>) {
| `- note: candidate expects in-out value of type 'OutputSpan<UInt8>' for parameter #2 (got '_')
143 | let byteCount = min(output.freeCapacity, Self.__kCFBitmapSize)
144 | precondition(byteCount > 0)
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:28: error: cannot suppress 'Copyable' requirement of an associated type
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
18 | associatedtype KeyView: ~Copyable, ~Escapable
19 | associatedtype UnkeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:39: error: cannot suppress 'Escapable' requirement of an associated type
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
18 | associatedtype KeyView: ~Copyable, ~Escapable
19 | associatedtype UnkeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:18:29: error: cannot suppress 'Copyable' requirement of an associated type
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:18:40: error: cannot suppress 'Escapable' requirement of an associated type
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:335:28: error: cannot suppress 'Copyable' requirement of an associated type
333 | /// Emits parse events into an `IterativeParsingDriver`. Every source is a tree walker: emits one top-level value, then advances frame-by-frame until the tree is exhausted.
334 | protocol ParseEventSource<Filter>: ~Copyable, ~Escapable {
335 | associatedtype Filter: ParseEventFilter & ~Copyable = NullFilter
| `- error: cannot suppress 'Copyable' requirement of an associated type
336 | associatedtype Vocabulary: ParseEventVocabulary
337 | /// Per-container state the source maintains for its walk. The driver stores it; the source reads/mutates via `channel.topSourceState`. Default `Void`.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:373:28: error: cannot suppress 'Copyable' requirement of an associated type
371 | associatedtype ValueFragment
372 | associatedtype ContainerFragment = ValueFragment
373 | associatedtype Output: ~Copyable
| `- error: cannot suppress 'Copyable' requirement of an associated type
374 |
375 | // Leaf events. Sink decides whether to compute and append.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:20:26: error: cannot suppress 'Copyable' requirement of an associated type
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- error: cannot suppress 'Copyable' requirement of an associated type
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:20:26: error: cannot suppress 'Escapable' requirement of an associated type
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- error: cannot suppress 'Escapable' requirement of an associated type
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:26:146: error: cannot suppress 'Copyable' requirement of an associated type
24 |
25 | /// Drives an iterative parse: routes events from a `ParseEventSource` to a `ParseEventSink`, owns the frame stack, and dispatches to a `ParseEventFilter`.
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:26:146: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
24 |
25 | /// Drives an iterative parse: routes events from a `ParseEventSource` to a `ParseEventSink`, owns the frame stack, and dispatches to a `ParseEventFilter`.
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:28:20: error: cannot find type 'UniqueArray' in scope
26 | struct IterativeParsingDriver<Source: ParseEventSource & ~Copyable & ~Escapable, Sink: ParseEventSink & ~Copyable>: ~Copyable where Source.Filter: ~Copyable {
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
| `- error: cannot find type 'UniqueArray' in scope
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
30 | var frames: UniqueArray<_Frame>
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:29:22: error: cannot find type 'UniqueArray' in scope
27 | var sink: Sink
28 | var keysArena: UniqueArray<Sink.KeyFragment>
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
| `- error: cannot find type 'UniqueArray' in scope
30 | var frames: UniqueArray<_Frame>
31 | /// Set by the driver before every source call; read by `beginUnkeyedContainer`/`beginKeyedContainer` to stamp the pushed child frame's `filterLevel`. `nil` = no filter at this frame.
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:30:17: error: cannot find type 'UniqueArray' in scope
28 | var keysArena: UniqueArray<Sink.KeyFragment>
29 | var valuesArena: UniqueArray<Sink.ValueFragment>
30 | var frames: UniqueArray<_Frame>
| `- error: cannot find type 'UniqueArray' in scope
31 | /// Set by the driver before every source call; read by `beginUnkeyedContainer`/`beginKeyedContainer` to stamp the pushed child frame's `filterLevel`. `nil` = no filter at this frame.
32 | var pendingChildFilterLevel: Int?
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:65:140: error: cannot suppress 'Copyable' requirement of an associated type
63 | }
64 |
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:65:140: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
63 | }
64 |
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:67:45: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
65 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter: ~Copyable {
66 |
67 | consuming func runReturningSink<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
68 | do {
69 | pendingChildFilterLevel = filter.rootLevel
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:85:61: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
83 |
84 | /// One step of the outer loop: ask the source to emit the next child of the top frame (respecting `filter`); if the source declines, close the frame.
85 | private mutating func advanceOrFinalizeTopFrame<Filter: ParseEventFilter & ~Copyable>(source: inout Source, filter: borrowing Filter) throws where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
86 | let topIdx = frames.count &- 1
87 | let atLevel = frames[topIdx].filterLevel
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:119:32: error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
117 | }
118 |
119 | consuming func run<Filter: ParseEventFilter & ~Copyable>(source: consuming Source, filter: consuming Filter) throws -> Sink.Output where Source.Filter == Filter {
| `- error: 'Filter' required to be 'Copyable' but is marked with '~Copyable'
120 | return try runReturningSink(source: source, filter: filter).takeResult()
121 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:124:1: error: no type for 'Source.Filter' can satisfy both 'Source.Filter == NullFilter' and 'Source.Filter : Copyable'
122 | }
123 |
124 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Vocabulary == Sink.Vocabulary, Source.Filter == NullFilter {
| `- error: no type for 'Source.Filter' can satisfy both 'Source.Filter == NullFilter' and 'Source.Filter : Copyable'
125 | consuming func runReturningSink(source: consuming Source) throws -> Sink {
126 | try self.runReturningSink(source: source, filter: NullFilter())
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:134:102: error: cannot suppress 'Copyable' requirement of an associated type
132 | }
133 |
134 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
135 | typealias Scalar = Sink.Vocabulary.Scalar
136 | typealias KeyView = Sink.Vocabulary.KeyView
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:134:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
132 | }
133 |
134 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
135 | typealias Scalar = Sink.Vocabulary.Scalar
136 | typealias KeyView = Sink.Vocabulary.KeyView
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:313:102: error: cannot suppress 'Copyable' requirement of an associated type
311 | mutating func beginKeyedContainer(cacheKey: Int?) throws { try beginKeyedContainer(cacheKey: cacheKey, sourceState: ()) }}
312 |
313 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.UnkeyedContainerKind == Void {
| `- error: cannot suppress 'Copyable' requirement of an associated type
314 | mutating func endUnkeyedContainer() throws { try endUnkeyedContainer(kind: ()) }
315 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:313:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
311 | mutating func beginKeyedContainer(cacheKey: Int?) throws { try beginKeyedContainer(cacheKey: cacheKey, sourceState: ()) }}
312 |
313 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.UnkeyedContainerKind == Void {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
314 | mutating func endUnkeyedContainer() throws { try endUnkeyedContainer(kind: ()) }
315 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:322:102: error: cannot suppress 'Copyable' requirement of an associated type
320 | }
321 |
322 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.KeyedContainerKind == Void {
| `- error: cannot suppress 'Copyable' requirement of an associated type
323 | mutating func endKeyedContainer() throws { try endKeyedContainer(kind: ()) }
324 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:322:102: error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
320 | }
321 |
322 | extension IterativeParsingDriver where Source: ~Copyable & ~Escapable, Sink: ~Copyable, Source.Filter: ~Copyable, Sink.Vocabulary.KeyedContainerKind == Void {
| `- error: 'Source.Filter' required to be 'Copyable' but is marked with '~Copyable'
323 | mutating func endKeyedContainer() throws { try endKeyedContainer(kind: ()) }
324 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:359:70: error: cannot suppress 'Copyable' requirement of an associated type
357 | }
358 |
359 | extension ParseEventSource where Self: ~Copyable & ~Escapable, Filter: ~Copyable {
| `- error: cannot suppress 'Copyable' requirement of an associated type
360 | mutating func finish() throws {}
361 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:359:70: error: 'Self.Filter' required to be 'Copyable' but is marked with '~Copyable'
357 | }
358 |
359 | extension ParseEventSource where Self: ~Copyable & ~Escapable, Filter: ~Copyable {
| `- error: 'Self.Filter' required to be 'Copyable' but is marked with '~Copyable'
360 | mutating func finish() throws {}
361 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:443:18: error: cannot find type 'MutableRef' in scope
441 | /// Append-only handle over one of the driver's fragment arenas. Handed to the sink during a leaf/key/finalize call so it can push (or not) without seeing the underlying storage.
442 | struct ParseEventAccumulator<Fragment>: ~Copyable, ~Escapable {
443 | var storage: MutableRef<UniqueArray<Fragment>>
| `- error: cannot find type 'MutableRef' in scope
444 |
445 | @_lifetime(copy storage)
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:446:29: error: cannot find type 'MutableRef' in scope
444 |
445 | @_lifetime(copy storage)
446 | init(storage: consuming MutableRef<UniqueArray<Fragment>>) {
| `- error: cannot find type 'MutableRef' in scope
447 | self.storage = storage
448 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:52:26: error: cannot find 'UniqueArray' in scope
50 | init(sink: consuming Sink) {
51 | self.sink = sink
52 | self.keysArena = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
53 | self.valuesArena = UniqueArray()
54 | self.frames = UniqueArray()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:53:28: error: cannot find 'UniqueArray' in scope
51 | self.sink = sink
52 | self.keysArena = UniqueArray()
53 | self.valuesArena = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
54 | self.frames = UniqueArray()
55 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:54:23: error: cannot find 'UniqueArray' in scope
52 | self.keysArena = UniqueArray()
53 | self.valuesArena = UniqueArray()
54 | self.frames = UniqueArray()
| `- error: cannot find 'UniqueArray' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:185:68: error: cannot find 'MutableRef' in scope
183 | precondition(!frames[topIdx].hasPendingKey, "parkKey: previous key not paired")
184 |
185 | var acc = ParseEventAccumulator<Sink.KeyFragment>(storage: MutableRef(&keysArena))
| `- error: cannot find 'MutableRef' in scope
186 | try sink.acceptKey(key, into: &acc)
187 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:192:70: error: cannot find 'MutableRef' in scope
190 |
191 | mutating func emitScalar(_ scalar: borrowing Scalar, cacheKey: Int? = nil) throws {
192 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
193 | try sink.acceptScalar(scalar, cacheKey: cacheKey, into: &acc)
194 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:198:70: error: cannot find 'MutableRef' in scope
196 |
197 | mutating func emitNull(cacheKey: Int? = nil) throws {
198 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
199 | try sink.acceptNull(cacheKey: cacheKey, into: &acc)
200 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:206:70: error: cannot find 'MutableRef' in scope
204 | // Roots are never dedup targets; sink cache is empty at parse start.
205 | if frames.isEmpty { return false }
206 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
207 | let hit = try sink.tryEmitCachedForKey(key, into: &acc)
208 | if hit {
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:302:70: error: cannot find 'MutableRef' in scope
300 | return
301 | }
302 | var acc = ParseEventAccumulator<Sink.ValueFragment>(storage: MutableRef(&valuesArena))
| `- error: cannot find 'MutableRef' in scope
303 | try sink.acceptContainer(container, into: &acc)
304 | markPendingKeyConsumed()
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingSupport.swift:88:8: error: type 'NullFilter' does not conform to protocol 'ParseEventFilter'
18 | /// The `IterativeParsingDriver` will hand a `FilterView` for the appropriate depth level to the source whenever it is decoding a container's contents. The source is obligated to refer to the `FilterView` to discover what events it is allowed to emit from its source data.
19 | protocol ParseEventFilter: ~Copyable {
20 | associatedtype View: FilterView & ~Copyable & ~Escapable
| `- note: protocol requires nested type 'View'
21 |
22 | /// The root filter level (typically 0), or `nil` when nothing is filtered at any depth.
:
86 | }
87 |
88 | struct NullFilter: ParseEventFilter, ~Copyable {
| |- error: type 'NullFilter' does not conform to protocol 'ParseEventFilter'
| `- note: add stubs for conformance
89 | typealias View = NullFilterView
| `- note: possibly intended match 'NullFilter.View' (aka 'NullFilterView') does not conform to 'Copyable'
90 | @inline(__always) var rootLevel: Int? { nil }
91 | @inline(__always) borrowing func nextLevel(after parentLevel: Int?) -> Int? { nil }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:40:6: error: type 'JSONVocabulary' does not conform to protocol 'ParseEventVocabulary'
38 |
39 | /// Event alphabet shared by JSON sources and sinks.
40 | enum JSONVocabulary: ParseEventVocabulary {
| |- error: type 'JSONVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
41 | typealias Scalar = JSONScalar
| `- note: possibly intended match 'JSONVocabulary.Scalar' (aka 'JSONScalar') does not conform to 'Copyable'
42 | typealias KeyView = JSONKeyView
| `- note: possibly intended match 'JSONVocabulary.KeyView' (aka 'JSONKeyView') does not conform to 'Copyable'
43 | }
44 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:77:6: error: type 'XMLPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
75 |
76 | /// Event alphabet shared by XML plist sources and sinks.
77 | enum XMLPlistVocabulary: ParseEventVocabulary {
| |- error: type 'XMLPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
78 | typealias Scalar = XMLPlistScalar
| `- note: possibly intended match 'XMLPlistVocabulary.Scalar' (aka 'XMLPlistScalar') does not conform to 'Copyable'
79 | typealias KeyView = XMLPlistKeyView
| `- note: possibly intended match 'XMLPlistVocabulary.KeyView' (aka 'XMLPlistKeyView') does not conform to 'Copyable'
80 | }
81 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/ParseEventVocabularies.swift:165:6: error: type 'BPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
163 |
164 | /// Event alphabet shared by bplist sources and sinks.
165 | enum BPlistVocabulary: ParseEventVocabulary {
| |- error: type 'BPlistVocabulary' does not conform to protocol 'ParseEventVocabulary'
| `- note: add stubs for conformance
166 | typealias Scalar = BPlistScalar
| `- note: possibly intended match 'BPlistVocabulary.Scalar' (aka 'BPlistScalar') does not conform to 'Copyable'
167 | typealias KeyView = BPlistKeyView
| `- note: possibly intended match 'BPlistVocabulary.KeyView' (aka 'BPlistKeyView') does not conform to 'Copyable'
168 | typealias UnkeyedContainerKind = BPlistUnkeyedContainerKind
169 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Codable/IterativeParsingDriver.swift:17:20: note: protocol requires nested type 'Scalar'
15 | /// The event alphabet a `ParseEventSource` emits and a `ParseEventSink` consumes. Format-specific: `JSONVocabulary`, `BPlistVocabulary`, `XMLPlistVocabulary` each pair their scalar enum with their key-view type. A `Source` and `Sink` are compatible when their `Vocabulary` associated types match.
16 | protocol ParseEventVocabulary {
17 | associatedtype Scalar: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'Scalar'
18 | associatedtype KeyView: ~Copyable, ~Escapable
| `- note: protocol requires nested type 'KeyView'
19 | associatedtype UnkeyedContainerKind = Void
20 | associatedtype KeyedContainerKind = Void
BUILD FAILURE 6.3 linux