Build Information
Failed to build swift-foundation, reference main (19e397), with Swift 6.0 for Linux on 12 Dec 2025 23:40:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: cannot find 'unsafe' in scope
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: cannot find 'unsafe' in scope
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: cannot find 'unsafe' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:31: error: cannot find 'MutableRawSpan' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'MutableRawSpan' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:27: error: cannot find '_overrideLifetime' in scope
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: cannot find 'unsafe' in scope
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: cannot find 'unsafe' in scope
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: cannot find 'unsafe' in scope
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: cannot find 'unsafe' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:31: error: cannot find 'MutableSpan' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'MutableSpan' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:27: error: cannot find '_overrideLifetime' in scope
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
465 | #endif
466 | }
[1217/1222] Compiling FoundationEssentials Date.swift
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Error.swift:22:9: warning: unknown operating system for build configuration 'os'
20 | internal func logFileIOErrno(_ err: Int32, at place: String) {
21 | #if FOUNDATION_FRAMEWORK
22 | #if !os(bridgeOS)
| |- warning: unknown operating system for build configuration 'os'
| |- note: did you mean 'iOS'?
| `- note: did you mean 'xrOS'?
23 | let errnoDesc = String(cString: strerror(err))
24 | Logger(_NSOSLog()).error("Encountered \(place) failure \(err) \(errnoDesc)")
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:26: error: expected ',' separator
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: expected ',' separator
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: consecutive statements on a line must be separated by ';'
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: consecutive statements on a line must be separated by ';'
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: consecutive statements on a line must be separated by ';'
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: consecutive statements on a line must be separated by ';'
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:20: error: consecutive statements on a line must be separated by ';'
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: consecutive statements on a line must be separated by ';'
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:26: error: expected ',' separator
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: expected ',' separator
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: consecutive statements on a line must be separated by ';'
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: consecutive statements on a line must be separated by ';'
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: consecutive statements on a line must be separated by ';'
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: consecutive statements on a line must be separated by ';'
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: consecutive statements on a line must be separated by ';'
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:20: error: consecutive statements on a line must be separated by ';'
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:434:24: error: consecutive statements on a line must be separated by ';'
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
433 | var bytes = mutableBytes
434 | let span = unsafe bytes._unsafeMutableView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
435 | return _overrideLifetime(span, mutating: &self)
436 | #else
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: consecutive statements on a line must be separated by ';'
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: consecutive statements on a line must be separated by ';'
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: consecutive statements on a line must be separated by ';'
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: consecutive statements on a line must be separated by ';'
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:20: error: consecutive statements on a line must be separated by ';'
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
465 | #endif
466 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:450:95: error: cannot find type 'OutputRawSpan' in scope
448 | /// Takes an `Int` size and returns an `Int` to match `Data`'s count. If we are going to read more than Int.max, throws - because we won't be able to store it in `Data`.
449 | /// If `readUntilLength` is `false`, then we will end the read if we receive less than `length` bytes. This can be used to read from something like a socket, where the `length` simply represents the maximum size you can read at once.
450 | private func readBytesFromFileDescriptor(_ fd: Int32, path: PathOrURL, buffer inBuffer: inout OutputRawSpan, readUntilLength: Bool = true, reportProgress: Bool) throws {
| `- error: cannot find type 'OutputRawSpan' in scope
451 | // If chunkSize (8-byte value) is more than blksize_t.max (4 byte value), then use the 4 byte max and chunk
452 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:376:30: error: cannot find 'OutputRawSpan' in scope
374 | while true {
375 | let buffer = UnsafeMutableRawBufferPointer(start: ptr, count: totalRead + chunkSize)
376 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: totalRead)
| `- error: cannot find 'OutputRawSpan' in scope
377 | try readBytesFromFileDescriptor(fd, path: inPath, buffer: &outputSpan, readUntilLength: false, reportProgress: false)
378 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:424:26: error: cannot find 'OutputRawSpan' in scope
422 | }
423 | let buffer = UnsafeMutableRawBufferPointer(start: bytes, count: Int(fileSize))
424 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: 0)
| `- error: cannot find 'OutputRawSpan' in scope
425 |
426 | localProgress?.becomeCurrent(withPendingUnitCount: Int64(fileSize))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:59:69: error: cannot find type 'RawSpan' in scope
57 | #endif
58 |
59 | private func writeToFileDescriptorWithProgress(_ fd: Int32, buffer: RawSpan, reportProgress: Bool) throws -> Int {
| `- error: cannot find type 'RawSpan' in scope
60 | // Fetch this once
61 | let length = buffer.byteCount
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:285:28: error: cannot find type 'RawSpan' in scope
283 | }
284 |
285 | private func write(buffer: RawSpan, toFileDescriptor fd: Int32, path: PathOrURL, parentProgress: Progress?) throws {
| `- error: cannot find type 'RawSpan' in scope
286 | let count = buffer.byteCount
287 | parentProgress?.becomeCurrent(withPendingUnitCount: Int64(count))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:350:59: error: cannot find type 'RawSpan' in scope
348 | #endif
349 |
350 | internal func writeToFile(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data] = [:], reportProgress: Bool = false) throws {
| `- error: cannot find type 'RawSpan' in scope
351 | #if os(WASI) // `.atomic` is unavailable on WASI
352 | try writeToFileNoAux(path: inPath, buffer: buffer, options: options, attributes: attributes, reportProgress: reportProgress)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:366:61: error: cannot find type 'RawSpan' in scope
364 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
365 | #endif
366 | private func writeToFileAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
367 | #if os(WASI)
368 | // `.atomic` is unavailable on WASI
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:618:63: error: cannot find type 'RawSpan' in scope
616 |
617 | /// Create a new file out of `Data` at a path, not using atomic writing.
618 | private func writeToFileNoAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
619 | #if !os(WASI) // `.atomic` is unavailable on WASI
620 | assert(!options.contains(.atomic))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:355:23: error: cannot find type 'RawSpan' in scope
353 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
| `- error: cannot find type 'RawSpan' in scope
356 | @lifetime(borrow self)
357 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:765:32: error: cannot infer contextual base in reference to member 'url'
763 |
764 | #if !NO_FILESYSTEM
765 | try writeToFile(path: .url(url), buffer: self.bytes, options: options, reportProgress: true)
| `- error: cannot infer contextual base in reference to member 'url'
766 | #else
767 | throw CocoaError(.featureUnsupported)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:10: error: unknown attribute 'lifetime'
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:383:22: error: cannot find type 'Span' in scope
381 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
| `- error: cannot find type 'Span' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:10: error: unknown attribute 'lifetime'
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:393:30: error: cannot find type 'MutableRawSpan' in scope
391 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
| `- error: cannot find type 'MutableRawSpan' in scope
394 | @lifetime(&self)
395 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:10: error: unknown attribute 'lifetime'
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:429:29: error: cannot find type 'MutableSpan' in scope
427 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
| `- error: cannot find type 'MutableSpan' in scope
430 | @lifetime(&self)
431 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:10: error: unknown attribute 'lifetime'
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: cannot find 'unsafe' in scope
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: cannot find 'unsafe' in scope
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: cannot find 'unsafe' in scope
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: cannot find 'unsafe' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:31: error: cannot find 'RawSpan' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'RawSpan' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:27: error: cannot find '_overrideLifetime' in scope
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: cannot find '_overrideLifetime' in scope
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: cannot find 'unsafe' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: cannot find 'unsafe' in scope
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: cannot find 'unsafe' in scope
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: cannot find 'unsafe' in scope
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: cannot find 'unsafe' in scope
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: cannot find 'unsafe' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:31: error: cannot find 'MutableRawSpan' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'MutableRawSpan' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:27: error: cannot find '_overrideLifetime' in scope
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: cannot find 'unsafe' in scope
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: cannot find 'unsafe' in scope
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: cannot find 'unsafe' in scope
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: cannot find 'unsafe' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:31: error: cannot find 'MutableSpan' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'MutableSpan' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:27: error: cannot find '_overrideLifetime' in scope
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
465 | #endif
466 | }
[1218/1222] Compiling FoundationEssentials DateInterval.swift
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Error.swift:22:9: warning: unknown operating system for build configuration 'os'
20 | internal func logFileIOErrno(_ err: Int32, at place: String) {
21 | #if FOUNDATION_FRAMEWORK
22 | #if !os(bridgeOS)
| |- warning: unknown operating system for build configuration 'os'
| |- note: did you mean 'iOS'?
| `- note: did you mean 'xrOS'?
23 | let errnoDesc = String(cString: strerror(err))
24 | Logger(_NSOSLog()).error("Encountered \(place) failure \(err) \(errnoDesc)")
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:26: error: expected ',' separator
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: expected ',' separator
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: consecutive statements on a line must be separated by ';'
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: consecutive statements on a line must be separated by ';'
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: consecutive statements on a line must be separated by ';'
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: consecutive statements on a line must be separated by ';'
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:20: error: consecutive statements on a line must be separated by ';'
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: consecutive statements on a line must be separated by ';'
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:26: error: expected ',' separator
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: expected ',' separator
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: consecutive statements on a line must be separated by ';'
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: consecutive statements on a line must be separated by ';'
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: consecutive statements on a line must be separated by ';'
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: consecutive statements on a line must be separated by ';'
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: consecutive statements on a line must be separated by ';'
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:20: error: consecutive statements on a line must be separated by ';'
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:434:24: error: consecutive statements on a line must be separated by ';'
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
433 | var bytes = mutableBytes
434 | let span = unsafe bytes._unsafeMutableView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
435 | return _overrideLifetime(span, mutating: &self)
436 | #else
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: consecutive statements on a line must be separated by ';'
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: consecutive statements on a line must be separated by ';'
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: consecutive statements on a line must be separated by ';'
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: consecutive statements on a line must be separated by ';'
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:20: error: consecutive statements on a line must be separated by ';'
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
465 | #endif
466 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:450:95: error: cannot find type 'OutputRawSpan' in scope
448 | /// Takes an `Int` size and returns an `Int` to match `Data`'s count. If we are going to read more than Int.max, throws - because we won't be able to store it in `Data`.
449 | /// If `readUntilLength` is `false`, then we will end the read if we receive less than `length` bytes. This can be used to read from something like a socket, where the `length` simply represents the maximum size you can read at once.
450 | private func readBytesFromFileDescriptor(_ fd: Int32, path: PathOrURL, buffer inBuffer: inout OutputRawSpan, readUntilLength: Bool = true, reportProgress: Bool) throws {
| `- error: cannot find type 'OutputRawSpan' in scope
451 | // If chunkSize (8-byte value) is more than blksize_t.max (4 byte value), then use the 4 byte max and chunk
452 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:376:30: error: cannot find 'OutputRawSpan' in scope
374 | while true {
375 | let buffer = UnsafeMutableRawBufferPointer(start: ptr, count: totalRead + chunkSize)
376 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: totalRead)
| `- error: cannot find 'OutputRawSpan' in scope
377 | try readBytesFromFileDescriptor(fd, path: inPath, buffer: &outputSpan, readUntilLength: false, reportProgress: false)
378 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:424:26: error: cannot find 'OutputRawSpan' in scope
422 | }
423 | let buffer = UnsafeMutableRawBufferPointer(start: bytes, count: Int(fileSize))
424 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: 0)
| `- error: cannot find 'OutputRawSpan' in scope
425 |
426 | localProgress?.becomeCurrent(withPendingUnitCount: Int64(fileSize))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:59:69: error: cannot find type 'RawSpan' in scope
57 | #endif
58 |
59 | private func writeToFileDescriptorWithProgress(_ fd: Int32, buffer: RawSpan, reportProgress: Bool) throws -> Int {
| `- error: cannot find type 'RawSpan' in scope
60 | // Fetch this once
61 | let length = buffer.byteCount
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:285:28: error: cannot find type 'RawSpan' in scope
283 | }
284 |
285 | private func write(buffer: RawSpan, toFileDescriptor fd: Int32, path: PathOrURL, parentProgress: Progress?) throws {
| `- error: cannot find type 'RawSpan' in scope
286 | let count = buffer.byteCount
287 | parentProgress?.becomeCurrent(withPendingUnitCount: Int64(count))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:350:59: error: cannot find type 'RawSpan' in scope
348 | #endif
349 |
350 | internal func writeToFile(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data] = [:], reportProgress: Bool = false) throws {
| `- error: cannot find type 'RawSpan' in scope
351 | #if os(WASI) // `.atomic` is unavailable on WASI
352 | try writeToFileNoAux(path: inPath, buffer: buffer, options: options, attributes: attributes, reportProgress: reportProgress)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:366:61: error: cannot find type 'RawSpan' in scope
364 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
365 | #endif
366 | private func writeToFileAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
367 | #if os(WASI)
368 | // `.atomic` is unavailable on WASI
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:618:63: error: cannot find type 'RawSpan' in scope
616 |
617 | /// Create a new file out of `Data` at a path, not using atomic writing.
618 | private func writeToFileNoAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
619 | #if !os(WASI) // `.atomic` is unavailable on WASI
620 | assert(!options.contains(.atomic))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:355:23: error: cannot find type 'RawSpan' in scope
353 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
| `- error: cannot find type 'RawSpan' in scope
356 | @lifetime(borrow self)
357 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:765:32: error: cannot infer contextual base in reference to member 'url'
763 |
764 | #if !NO_FILESYSTEM
765 | try writeToFile(path: .url(url), buffer: self.bytes, options: options, reportProgress: true)
| `- error: cannot infer contextual base in reference to member 'url'
766 | #else
767 | throw CocoaError(.featureUnsupported)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:10: error: unknown attribute 'lifetime'
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:383:22: error: cannot find type 'Span' in scope
381 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
| `- error: cannot find type 'Span' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:10: error: unknown attribute 'lifetime'
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:393:30: error: cannot find type 'MutableRawSpan' in scope
391 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
| `- error: cannot find type 'MutableRawSpan' in scope
394 | @lifetime(&self)
395 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:10: error: unknown attribute 'lifetime'
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:429:29: error: cannot find type 'MutableSpan' in scope
427 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
| `- error: cannot find type 'MutableSpan' in scope
430 | @lifetime(&self)
431 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:10: error: unknown attribute 'lifetime'
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: cannot find 'unsafe' in scope
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: cannot find 'unsafe' in scope
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: cannot find 'unsafe' in scope
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: cannot find 'unsafe' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:31: error: cannot find 'RawSpan' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'RawSpan' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:27: error: cannot find '_overrideLifetime' in scope
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: cannot find '_overrideLifetime' in scope
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: cannot find 'unsafe' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: cannot find 'unsafe' in scope
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: cannot find 'unsafe' in scope
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: cannot find 'unsafe' in scope
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: cannot find 'unsafe' in scope
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: cannot find 'unsafe' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:31: error: cannot find 'MutableRawSpan' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'MutableRawSpan' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:27: error: cannot find '_overrideLifetime' in scope
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: cannot find 'unsafe' in scope
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: cannot find 'unsafe' in scope
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: cannot find 'unsafe' in scope
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: cannot find 'unsafe' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:31: error: cannot find 'MutableSpan' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'MutableSpan' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:27: error: cannot find '_overrideLifetime' in scope
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
465 | #endif
466 | }
[1219/1222] Compiling FoundationEssentials Decimal+Compatibility.swift
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Error.swift:22:9: warning: unknown operating system for build configuration 'os'
20 | internal func logFileIOErrno(_ err: Int32, at place: String) {
21 | #if FOUNDATION_FRAMEWORK
22 | #if !os(bridgeOS)
| |- warning: unknown operating system for build configuration 'os'
| |- note: did you mean 'iOS'?
| `- note: did you mean 'xrOS'?
23 | let errnoDesc = String(cString: strerror(err))
24 | Logger(_NSOSLog()).error("Encountered \(place) failure \(err) \(errnoDesc)")
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:26: error: expected ',' separator
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: expected ',' separator
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: consecutive statements on a line must be separated by ';'
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: consecutive statements on a line must be separated by ';'
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: consecutive statements on a line must be separated by ';'
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: consecutive statements on a line must be separated by ';'
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:20: error: consecutive statements on a line must be separated by ';'
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: consecutive statements on a line must be separated by ';'
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:26: error: expected ',' separator
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: expected ',' separator
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: consecutive statements on a line must be separated by ';'
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: consecutive statements on a line must be separated by ';'
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: consecutive statements on a line must be separated by ';'
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: consecutive statements on a line must be separated by ';'
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: consecutive statements on a line must be separated by ';'
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:20: error: consecutive statements on a line must be separated by ';'
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:434:24: error: consecutive statements on a line must be separated by ';'
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
433 | var bytes = mutableBytes
434 | let span = unsafe bytes._unsafeMutableView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
435 | return _overrideLifetime(span, mutating: &self)
436 | #else
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: consecutive statements on a line must be separated by ';'
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: consecutive statements on a line must be separated by ';'
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: consecutive statements on a line must be separated by ';'
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: consecutive statements on a line must be separated by ';'
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:20: error: consecutive statements on a line must be separated by ';'
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
465 | #endif
466 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:450:95: error: cannot find type 'OutputRawSpan' in scope
448 | /// Takes an `Int` size and returns an `Int` to match `Data`'s count. If we are going to read more than Int.max, throws - because we won't be able to store it in `Data`.
449 | /// If `readUntilLength` is `false`, then we will end the read if we receive less than `length` bytes. This can be used to read from something like a socket, where the `length` simply represents the maximum size you can read at once.
450 | private func readBytesFromFileDescriptor(_ fd: Int32, path: PathOrURL, buffer inBuffer: inout OutputRawSpan, readUntilLength: Bool = true, reportProgress: Bool) throws {
| `- error: cannot find type 'OutputRawSpan' in scope
451 | // If chunkSize (8-byte value) is more than blksize_t.max (4 byte value), then use the 4 byte max and chunk
452 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:376:30: error: cannot find 'OutputRawSpan' in scope
374 | while true {
375 | let buffer = UnsafeMutableRawBufferPointer(start: ptr, count: totalRead + chunkSize)
376 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: totalRead)
| `- error: cannot find 'OutputRawSpan' in scope
377 | try readBytesFromFileDescriptor(fd, path: inPath, buffer: &outputSpan, readUntilLength: false, reportProgress: false)
378 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:424:26: error: cannot find 'OutputRawSpan' in scope
422 | }
423 | let buffer = UnsafeMutableRawBufferPointer(start: bytes, count: Int(fileSize))
424 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: 0)
| `- error: cannot find 'OutputRawSpan' in scope
425 |
426 | localProgress?.becomeCurrent(withPendingUnitCount: Int64(fileSize))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:59:69: error: cannot find type 'RawSpan' in scope
57 | #endif
58 |
59 | private func writeToFileDescriptorWithProgress(_ fd: Int32, buffer: RawSpan, reportProgress: Bool) throws -> Int {
| `- error: cannot find type 'RawSpan' in scope
60 | // Fetch this once
61 | let length = buffer.byteCount
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:285:28: error: cannot find type 'RawSpan' in scope
283 | }
284 |
285 | private func write(buffer: RawSpan, toFileDescriptor fd: Int32, path: PathOrURL, parentProgress: Progress?) throws {
| `- error: cannot find type 'RawSpan' in scope
286 | let count = buffer.byteCount
287 | parentProgress?.becomeCurrent(withPendingUnitCount: Int64(count))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:350:59: error: cannot find type 'RawSpan' in scope
348 | #endif
349 |
350 | internal func writeToFile(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data] = [:], reportProgress: Bool = false) throws {
| `- error: cannot find type 'RawSpan' in scope
351 | #if os(WASI) // `.atomic` is unavailable on WASI
352 | try writeToFileNoAux(path: inPath, buffer: buffer, options: options, attributes: attributes, reportProgress: reportProgress)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:366:61: error: cannot find type 'RawSpan' in scope
364 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
365 | #endif
366 | private func writeToFileAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
367 | #if os(WASI)
368 | // `.atomic` is unavailable on WASI
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:618:63: error: cannot find type 'RawSpan' in scope
616 |
617 | /// Create a new file out of `Data` at a path, not using atomic writing.
618 | private func writeToFileNoAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
619 | #if !os(WASI) // `.atomic` is unavailable on WASI
620 | assert(!options.contains(.atomic))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:355:23: error: cannot find type 'RawSpan' in scope
353 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
| `- error: cannot find type 'RawSpan' in scope
356 | @lifetime(borrow self)
357 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:765:32: error: cannot infer contextual base in reference to member 'url'
763 |
764 | #if !NO_FILESYSTEM
765 | try writeToFile(path: .url(url), buffer: self.bytes, options: options, reportProgress: true)
| `- error: cannot infer contextual base in reference to member 'url'
766 | #else
767 | throw CocoaError(.featureUnsupported)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:10: error: unknown attribute 'lifetime'
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:383:22: error: cannot find type 'Span' in scope
381 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
| `- error: cannot find type 'Span' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:10: error: unknown attribute 'lifetime'
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:393:30: error: cannot find type 'MutableRawSpan' in scope
391 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
| `- error: cannot find type 'MutableRawSpan' in scope
394 | @lifetime(&self)
395 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:10: error: unknown attribute 'lifetime'
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:429:29: error: cannot find type 'MutableSpan' in scope
427 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
| `- error: cannot find type 'MutableSpan' in scope
430 | @lifetime(&self)
431 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:10: error: unknown attribute 'lifetime'
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: cannot find 'unsafe' in scope
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: cannot find 'unsafe' in scope
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: cannot find 'unsafe' in scope
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: cannot find 'unsafe' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:31: error: cannot find 'RawSpan' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'RawSpan' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:27: error: cannot find '_overrideLifetime' in scope
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: cannot find '_overrideLifetime' in scope
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: cannot find 'unsafe' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: cannot find 'unsafe' in scope
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: cannot find 'unsafe' in scope
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: cannot find 'unsafe' in scope
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: cannot find 'unsafe' in scope
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: cannot find 'unsafe' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:31: error: cannot find 'MutableRawSpan' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'MutableRawSpan' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:27: error: cannot find '_overrideLifetime' in scope
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: cannot find 'unsafe' in scope
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: cannot find 'unsafe' in scope
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: cannot find 'unsafe' in scope
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: cannot find 'unsafe' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:31: error: cannot find 'MutableSpan' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'MutableSpan' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:27: error: cannot find '_overrideLifetime' in scope
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
465 | #endif
466 | }
[1220/1222] Compiling FoundationEssentials Decimal+Conformances.swift
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Error.swift:22:9: warning: unknown operating system for build configuration 'os'
20 | internal func logFileIOErrno(_ err: Int32, at place: String) {
21 | #if FOUNDATION_FRAMEWORK
22 | #if !os(bridgeOS)
| |- warning: unknown operating system for build configuration 'os'
| |- note: did you mean 'iOS'?
| `- note: did you mean 'xrOS'?
23 | let errnoDesc = String(cString: strerror(err))
24 | Logger(_NSOSLog()).error("Encountered \(place) failure \(err) \(errnoDesc)")
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:26: error: expected ',' separator
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: expected ',' separator
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: consecutive statements on a line must be separated by ';'
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: consecutive statements on a line must be separated by ';'
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: consecutive statements on a line must be separated by ';'
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: consecutive statements on a line must be separated by ';'
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:20: error: consecutive statements on a line must be separated by ';'
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: consecutive statements on a line must be separated by ';'
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:26: error: expected ',' separator
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: expected ',' separator
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: consecutive statements on a line must be separated by ';'
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: consecutive statements on a line must be separated by ';'
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: consecutive statements on a line must be separated by ';'
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: consecutive statements on a line must be separated by ';'
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: consecutive statements on a line must be separated by ';'
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:20: error: consecutive statements on a line must be separated by ';'
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:434:24: error: consecutive statements on a line must be separated by ';'
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
433 | var bytes = mutableBytes
434 | let span = unsafe bytes._unsafeMutableView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
435 | return _overrideLifetime(span, mutating: &self)
436 | #else
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: consecutive statements on a line must be separated by ';'
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: consecutive statements on a line must be separated by ';'
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: consecutive statements on a line must be separated by ';'
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: consecutive statements on a line must be separated by ';'
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:20: error: consecutive statements on a line must be separated by ';'
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
465 | #endif
466 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:450:95: error: cannot find type 'OutputRawSpan' in scope
448 | /// Takes an `Int` size and returns an `Int` to match `Data`'s count. If we are going to read more than Int.max, throws - because we won't be able to store it in `Data`.
449 | /// If `readUntilLength` is `false`, then we will end the read if we receive less than `length` bytes. This can be used to read from something like a socket, where the `length` simply represents the maximum size you can read at once.
450 | private func readBytesFromFileDescriptor(_ fd: Int32, path: PathOrURL, buffer inBuffer: inout OutputRawSpan, readUntilLength: Bool = true, reportProgress: Bool) throws {
| `- error: cannot find type 'OutputRawSpan' in scope
451 | // If chunkSize (8-byte value) is more than blksize_t.max (4 byte value), then use the 4 byte max and chunk
452 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:376:30: error: cannot find 'OutputRawSpan' in scope
374 | while true {
375 | let buffer = UnsafeMutableRawBufferPointer(start: ptr, count: totalRead + chunkSize)
376 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: totalRead)
| `- error: cannot find 'OutputRawSpan' in scope
377 | try readBytesFromFileDescriptor(fd, path: inPath, buffer: &outputSpan, readUntilLength: false, reportProgress: false)
378 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:424:26: error: cannot find 'OutputRawSpan' in scope
422 | }
423 | let buffer = UnsafeMutableRawBufferPointer(start: bytes, count: Int(fileSize))
424 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: 0)
| `- error: cannot find 'OutputRawSpan' in scope
425 |
426 | localProgress?.becomeCurrent(withPendingUnitCount: Int64(fileSize))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:59:69: error: cannot find type 'RawSpan' in scope
57 | #endif
58 |
59 | private func writeToFileDescriptorWithProgress(_ fd: Int32, buffer: RawSpan, reportProgress: Bool) throws -> Int {
| `- error: cannot find type 'RawSpan' in scope
60 | // Fetch this once
61 | let length = buffer.byteCount
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:285:28: error: cannot find type 'RawSpan' in scope
283 | }
284 |
285 | private func write(buffer: RawSpan, toFileDescriptor fd: Int32, path: PathOrURL, parentProgress: Progress?) throws {
| `- error: cannot find type 'RawSpan' in scope
286 | let count = buffer.byteCount
287 | parentProgress?.becomeCurrent(withPendingUnitCount: Int64(count))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:350:59: error: cannot find type 'RawSpan' in scope
348 | #endif
349 |
350 | internal func writeToFile(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data] = [:], reportProgress: Bool = false) throws {
| `- error: cannot find type 'RawSpan' in scope
351 | #if os(WASI) // `.atomic` is unavailable on WASI
352 | try writeToFileNoAux(path: inPath, buffer: buffer, options: options, attributes: attributes, reportProgress: reportProgress)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:366:61: error: cannot find type 'RawSpan' in scope
364 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
365 | #endif
366 | private func writeToFileAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
367 | #if os(WASI)
368 | // `.atomic` is unavailable on WASI
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:618:63: error: cannot find type 'RawSpan' in scope
616 |
617 | /// Create a new file out of `Data` at a path, not using atomic writing.
618 | private func writeToFileNoAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
619 | #if !os(WASI) // `.atomic` is unavailable on WASI
620 | assert(!options.contains(.atomic))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:355:23: error: cannot find type 'RawSpan' in scope
353 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
| `- error: cannot find type 'RawSpan' in scope
356 | @lifetime(borrow self)
357 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:765:32: error: cannot infer contextual base in reference to member 'url'
763 |
764 | #if !NO_FILESYSTEM
765 | try writeToFile(path: .url(url), buffer: self.bytes, options: options, reportProgress: true)
| `- error: cannot infer contextual base in reference to member 'url'
766 | #else
767 | throw CocoaError(.featureUnsupported)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:10: error: unknown attribute 'lifetime'
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:383:22: error: cannot find type 'Span' in scope
381 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
| `- error: cannot find type 'Span' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:10: error: unknown attribute 'lifetime'
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:393:30: error: cannot find type 'MutableRawSpan' in scope
391 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
| `- error: cannot find type 'MutableRawSpan' in scope
394 | @lifetime(&self)
395 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:10: error: unknown attribute 'lifetime'
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:429:29: error: cannot find type 'MutableSpan' in scope
427 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
| `- error: cannot find type 'MutableSpan' in scope
430 | @lifetime(&self)
431 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:10: error: unknown attribute 'lifetime'
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: cannot find 'unsafe' in scope
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: cannot find 'unsafe' in scope
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: cannot find 'unsafe' in scope
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: cannot find 'unsafe' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:31: error: cannot find 'RawSpan' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'RawSpan' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:27: error: cannot find '_overrideLifetime' in scope
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: cannot find '_overrideLifetime' in scope
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: cannot find 'unsafe' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: cannot find 'unsafe' in scope
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: cannot find 'unsafe' in scope
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: cannot find 'unsafe' in scope
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: cannot find 'unsafe' in scope
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: cannot find 'unsafe' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:31: error: cannot find 'MutableRawSpan' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'MutableRawSpan' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:27: error: cannot find '_overrideLifetime' in scope
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: cannot find 'unsafe' in scope
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: cannot find 'unsafe' in scope
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: cannot find 'unsafe' in scope
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: cannot find 'unsafe' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:31: error: cannot find 'MutableSpan' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'MutableSpan' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:27: error: cannot find '_overrideLifetime' in scope
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
465 | #endif
466 | }
[1221/1222] Compiling FoundationEssentials Decimal+Math.swift
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Error.swift:22:9: warning: unknown operating system for build configuration 'os'
20 | internal func logFileIOErrno(_ err: Int32, at place: String) {
21 | #if FOUNDATION_FRAMEWORK
22 | #if !os(bridgeOS)
| |- warning: unknown operating system for build configuration 'os'
| |- note: did you mean 'iOS'?
| `- note: did you mean 'xrOS'?
23 | let errnoDesc = String(cString: strerror(err))
24 | Logger(_NSOSLog()).error("Encountered \(place) failure \(err) \(errnoDesc)")
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:26: error: expected ',' separator
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: expected ',' separator
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: consecutive statements on a line must be separated by ';'
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: consecutive statements on a line must be separated by ';'
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: consecutive statements on a line must be separated by ';'
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: consecutive statements on a line must be separated by ';'
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:20: error: consecutive statements on a line must be separated by ';'
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: consecutive statements on a line must be separated by ';'
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:26: error: expected ',' separator
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: expected ',' separator
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: consecutive statements on a line must be separated by ';'
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: consecutive statements on a line must be separated by ';'
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: consecutive statements on a line must be separated by ';'
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: consecutive statements on a line must be separated by ';'
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: consecutive statements on a line must be separated by ';'
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:20: error: consecutive statements on a line must be separated by ';'
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:434:24: error: consecutive statements on a line must be separated by ';'
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
433 | var bytes = mutableBytes
434 | let span = unsafe bytes._unsafeMutableView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
435 | return _overrideLifetime(span, mutating: &self)
436 | #else
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: consecutive statements on a line must be separated by ';'
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: consecutive statements on a line must be separated by ';'
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: consecutive statements on a line must be separated by ';'
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: consecutive statements on a line must be separated by ';'
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:20: error: consecutive statements on a line must be separated by ';'
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
465 | #endif
466 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:450:95: error: cannot find type 'OutputRawSpan' in scope
448 | /// Takes an `Int` size and returns an `Int` to match `Data`'s count. If we are going to read more than Int.max, throws - because we won't be able to store it in `Data`.
449 | /// If `readUntilLength` is `false`, then we will end the read if we receive less than `length` bytes. This can be used to read from something like a socket, where the `length` simply represents the maximum size you can read at once.
450 | private func readBytesFromFileDescriptor(_ fd: Int32, path: PathOrURL, buffer inBuffer: inout OutputRawSpan, readUntilLength: Bool = true, reportProgress: Bool) throws {
| `- error: cannot find type 'OutputRawSpan' in scope
451 | // If chunkSize (8-byte value) is more than blksize_t.max (4 byte value), then use the 4 byte max and chunk
452 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:376:30: error: cannot find 'OutputRawSpan' in scope
374 | while true {
375 | let buffer = UnsafeMutableRawBufferPointer(start: ptr, count: totalRead + chunkSize)
376 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: totalRead)
| `- error: cannot find 'OutputRawSpan' in scope
377 | try readBytesFromFileDescriptor(fd, path: inPath, buffer: &outputSpan, readUntilLength: false, reportProgress: false)
378 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:424:26: error: cannot find 'OutputRawSpan' in scope
422 | }
423 | let buffer = UnsafeMutableRawBufferPointer(start: bytes, count: Int(fileSize))
424 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: 0)
| `- error: cannot find 'OutputRawSpan' in scope
425 |
426 | localProgress?.becomeCurrent(withPendingUnitCount: Int64(fileSize))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:59:69: error: cannot find type 'RawSpan' in scope
57 | #endif
58 |
59 | private func writeToFileDescriptorWithProgress(_ fd: Int32, buffer: RawSpan, reportProgress: Bool) throws -> Int {
| `- error: cannot find type 'RawSpan' in scope
60 | // Fetch this once
61 | let length = buffer.byteCount
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:285:28: error: cannot find type 'RawSpan' in scope
283 | }
284 |
285 | private func write(buffer: RawSpan, toFileDescriptor fd: Int32, path: PathOrURL, parentProgress: Progress?) throws {
| `- error: cannot find type 'RawSpan' in scope
286 | let count = buffer.byteCount
287 | parentProgress?.becomeCurrent(withPendingUnitCount: Int64(count))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:350:59: error: cannot find type 'RawSpan' in scope
348 | #endif
349 |
350 | internal func writeToFile(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data] = [:], reportProgress: Bool = false) throws {
| `- error: cannot find type 'RawSpan' in scope
351 | #if os(WASI) // `.atomic` is unavailable on WASI
352 | try writeToFileNoAux(path: inPath, buffer: buffer, options: options, attributes: attributes, reportProgress: reportProgress)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:366:61: error: cannot find type 'RawSpan' in scope
364 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
365 | #endif
366 | private func writeToFileAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
367 | #if os(WASI)
368 | // `.atomic` is unavailable on WASI
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:618:63: error: cannot find type 'RawSpan' in scope
616 |
617 | /// Create a new file out of `Data` at a path, not using atomic writing.
618 | private func writeToFileNoAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
619 | #if !os(WASI) // `.atomic` is unavailable on WASI
620 | assert(!options.contains(.atomic))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:355:23: error: cannot find type 'RawSpan' in scope
353 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
| `- error: cannot find type 'RawSpan' in scope
356 | @lifetime(borrow self)
357 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:765:32: error: cannot infer contextual base in reference to member 'url'
763 |
764 | #if !NO_FILESYSTEM
765 | try writeToFile(path: .url(url), buffer: self.bytes, options: options, reportProgress: true)
| `- error: cannot infer contextual base in reference to member 'url'
766 | #else
767 | throw CocoaError(.featureUnsupported)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:10: error: unknown attribute 'lifetime'
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:383:22: error: cannot find type 'Span' in scope
381 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
| `- error: cannot find type 'Span' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:10: error: unknown attribute 'lifetime'
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:393:30: error: cannot find type 'MutableRawSpan' in scope
391 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
| `- error: cannot find type 'MutableRawSpan' in scope
394 | @lifetime(&self)
395 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:10: error: unknown attribute 'lifetime'
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:429:29: error: cannot find type 'MutableSpan' in scope
427 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
| `- error: cannot find type 'MutableSpan' in scope
430 | @lifetime(&self)
431 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:10: error: unknown attribute 'lifetime'
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: cannot find 'unsafe' in scope
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: cannot find 'unsafe' in scope
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: cannot find 'unsafe' in scope
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: cannot find 'unsafe' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:31: error: cannot find 'RawSpan' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'RawSpan' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:27: error: cannot find '_overrideLifetime' in scope
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: cannot find '_overrideLifetime' in scope
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: cannot find 'unsafe' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: cannot find 'unsafe' in scope
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: cannot find 'unsafe' in scope
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: cannot find 'unsafe' in scope
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: cannot find 'unsafe' in scope
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: cannot find 'unsafe' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:31: error: cannot find 'MutableRawSpan' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'MutableRawSpan' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:27: error: cannot find '_overrideLifetime' in scope
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: cannot find 'unsafe' in scope
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: cannot find 'unsafe' in scope
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: cannot find 'unsafe' in scope
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: cannot find 'unsafe' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:31: error: cannot find 'MutableSpan' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'MutableSpan' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:27: error: cannot find '_overrideLifetime' in scope
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
465 | #endif
466 | }
[1222/1222] Compiling FoundationEssentials Decimal.swift
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Error.swift:22:9: warning: unknown operating system for build configuration 'os'
20 | internal func logFileIOErrno(_ err: Int32, at place: String) {
21 | #if FOUNDATION_FRAMEWORK
22 | #if !os(bridgeOS)
| |- warning: unknown operating system for build configuration 'os'
| |- note: did you mean 'iOS'?
| `- note: did you mean 'xrOS'?
23 | let errnoDesc = String(cString: strerror(err))
24 | Logger(_NSOSLog()).error("Encountered \(place) failure \(err) \(errnoDesc)")
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:26: error: expected ',' separator
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: expected ',' separator
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: consecutive statements on a line must be separated by ';'
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: consecutive statements on a line must be separated by ';'
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: consecutive statements on a line must be separated by ';'
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: consecutive statements on a line must be separated by ';'
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:20: error: consecutive statements on a line must be separated by ';'
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: consecutive statements on a line must be separated by ';'
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:26: error: expected ',' separator
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: expected ',' separator
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: consecutive statements on a line must be separated by ';'
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: consecutive statements on a line must be separated by ';'
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: consecutive statements on a line must be separated by ';'
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: consecutive statements on a line must be separated by ';'
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: consecutive statements on a line must be separated by ';'
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:20: error: consecutive statements on a line must be separated by ';'
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:434:24: error: consecutive statements on a line must be separated by ';'
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
433 | var bytes = mutableBytes
434 | let span = unsafe bytes._unsafeMutableView(as: UInt8.self)
| `- error: consecutive statements on a line must be separated by ';'
435 | return _overrideLifetime(span, mutating: &self)
436 | #else
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: consecutive statements on a line must be separated by ';'
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: consecutive statements on a line must be separated by ';'
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: consecutive statements on a line must be separated by ';'
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: consecutive statements on a line must be separated by ';'
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: consecutive statements on a line must be separated by ';'
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: consecutive statements on a line must be separated by ';'
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:20: error: consecutive statements on a line must be separated by ';'
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: consecutive statements on a line must be separated by ';'
465 | #endif
466 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:450:95: error: cannot find type 'OutputRawSpan' in scope
448 | /// Takes an `Int` size and returns an `Int` to match `Data`'s count. If we are going to read more than Int.max, throws - because we won't be able to store it in `Data`.
449 | /// If `readUntilLength` is `false`, then we will end the read if we receive less than `length` bytes. This can be used to read from something like a socket, where the `length` simply represents the maximum size you can read at once.
450 | private func readBytesFromFileDescriptor(_ fd: Int32, path: PathOrURL, buffer inBuffer: inout OutputRawSpan, readUntilLength: Bool = true, reportProgress: Bool) throws {
| `- error: cannot find type 'OutputRawSpan' in scope
451 | // If chunkSize (8-byte value) is more than blksize_t.max (4 byte value), then use the 4 byte max and chunk
452 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:376:30: error: cannot find 'OutputRawSpan' in scope
374 | while true {
375 | let buffer = UnsafeMutableRawBufferPointer(start: ptr, count: totalRead + chunkSize)
376 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: totalRead)
| `- error: cannot find 'OutputRawSpan' in scope
377 | try readBytesFromFileDescriptor(fd, path: inPath, buffer: &outputSpan, readUntilLength: false, reportProgress: false)
378 |
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Reading.swift:424:26: error: cannot find 'OutputRawSpan' in scope
422 | }
423 | let buffer = UnsafeMutableRawBufferPointer(start: bytes, count: Int(fileSize))
424 | var outputSpan = OutputRawSpan(buffer: buffer, initializedCount: 0)
| `- error: cannot find 'OutputRawSpan' in scope
425 |
426 | localProgress?.becomeCurrent(withPendingUnitCount: Int64(fileSize))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:59:69: error: cannot find type 'RawSpan' in scope
57 | #endif
58 |
59 | private func writeToFileDescriptorWithProgress(_ fd: Int32, buffer: RawSpan, reportProgress: Bool) throws -> Int {
| `- error: cannot find type 'RawSpan' in scope
60 | // Fetch this once
61 | let length = buffer.byteCount
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:285:28: error: cannot find type 'RawSpan' in scope
283 | }
284 |
285 | private func write(buffer: RawSpan, toFileDescriptor fd: Int32, path: PathOrURL, parentProgress: Progress?) throws {
| `- error: cannot find type 'RawSpan' in scope
286 | let count = buffer.byteCount
287 | parentProgress?.becomeCurrent(withPendingUnitCount: Int64(count))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:350:59: error: cannot find type 'RawSpan' in scope
348 | #endif
349 |
350 | internal func writeToFile(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data] = [:], reportProgress: Bool = false) throws {
| `- error: cannot find type 'RawSpan' in scope
351 | #if os(WASI) // `.atomic` is unavailable on WASI
352 | try writeToFileNoAux(path: inPath, buffer: buffer, options: options, attributes: attributes, reportProgress: reportProgress)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:366:61: error: cannot find type 'RawSpan' in scope
364 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
365 | #endif
366 | private func writeToFileAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
367 | #if os(WASI)
368 | // `.atomic` is unavailable on WASI
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:618:63: error: cannot find type 'RawSpan' in scope
616 |
617 | /// Create a new file out of `Data` at a path, not using atomic writing.
618 | private func writeToFileNoAux(path inPath: PathOrURL, buffer: RawSpan, options: Data.WritingOptions, attributes: [String : Data], reportProgress: Bool) throws {
| `- error: cannot find type 'RawSpan' in scope
619 | #if !os(WASI) // `.atomic` is unavailable on WASI
620 | assert(!options.contains(.atomic))
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:355:23: error: cannot find type 'RawSpan' in scope
353 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
| `- error: cannot find type 'RawSpan' in scope
356 | @lifetime(borrow self)
357 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:765:32: error: cannot infer contextual base in reference to member 'url'
763 |
764 | #if !NO_FILESYSTEM
765 | try writeToFile(path: .url(url), buffer: self.bytes, options: options, reportProgress: true)
| `- error: cannot infer contextual base in reference to member 'url'
766 | #else
767 | throw CocoaError(.featureUnsupported)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:356:10: error: unknown attribute 'lifetime'
354 | @_alwaysEmitIntoClient
355 | public var bytes: RawSpan {
356 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
357 | borrowing get {
358 | let buffer: UnsafeRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:383:22: error: cannot find type 'Span' in scope
381 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
| `- error: cannot find type 'Span' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:384:10: error: unknown attribute 'lifetime'
382 | @_alwaysEmitIntoClient
383 | public var span: Span<UInt8> {
384 | @lifetime(borrow self)
| `- error: unknown attribute 'lifetime'
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:393:30: error: cannot find type 'MutableRawSpan' in scope
391 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
| `- error: cannot find type 'MutableRawSpan' in scope
394 | @lifetime(&self)
395 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:10: error: unknown attribute 'lifetime'
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:429:29: error: cannot find type 'MutableSpan' in scope
427 | @available(macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2, *)
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
| `- error: cannot find type 'MutableSpan' in scope
430 | @lifetime(&self)
431 | mutating get {
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:10: error: unknown attribute 'lifetime'
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: unknown attribute 'lifetime'
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:26: error: cannot find 'unsafe' in scope
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
361 | buffer = UnsafeRawBufferPointer(start: nil, count: 0)
362 | case .inline(let inline):
363 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
364 | start: UnsafeRawPointer(Builtin.addressOfBorrow(self)),
365 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:26: error: cannot find 'unsafe' in scope
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
366 | )
367 | case .large(let slice):
368 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
369 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
370 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:26: error: cannot find 'unsafe' in scope
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:33: warning: result of 'UnsafeRawBufferPointer' initializer is unused
370 | )
371 | case .slice(let slice):
372 | buffer = unsafe UnsafeRawBufferPointer(
| `- warning: result of 'UnsafeRawBufferPointer' initializer is unused
373 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
374 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:24: error: cannot find 'unsafe' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:31: error: cannot find 'RawSpan' in scope
374 | )
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'RawSpan' in scope
377 | return unsafe _overrideLifetime(span, borrowing: self)
378 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:27: error: cannot find '_overrideLifetime' in scope
375 | }
376 | let span = unsafe RawSpan(_unsafeBytes: buffer)
377 | return unsafe _overrideLifetime(span, borrowing: self)
| `- error: cannot find '_overrideLifetime' in scope
378 | }
379 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:24: error: cannot find 'unsafe' in scope
384 | @lifetime(borrow self)
385 | borrowing get {
386 | let span = unsafe bytes._unsafeView(as: UInt8.self)
| `- error: cannot find 'unsafe' in scope
387 | return _overrideLifetime(span, borrowing: self)
388 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:26: error: cannot find 'unsafe' in scope
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
399 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
400 | case .inline(let inline):
401 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
402 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
403 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:26: error: cannot find 'unsafe' in scope
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
408 | slice.ensureUniqueReference()
409 | _representation = .large(slice)
410 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
411 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
412 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:26: error: cannot find 'unsafe' in scope
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
416 | slice.ensureUniqueReference()
417 | _representation = .slice(slice)
418 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
419 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
420 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:24: error: cannot find 'unsafe' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:31: error: cannot find 'MutableRawSpan' in scope
420 | )
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
| `- error: cannot find 'MutableRawSpan' in scope
423 | return unsafe _overrideLifetime(span, mutating: &self)
424 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:27: error: cannot find '_overrideLifetime' in scope
421 | }
422 | let span = unsafe MutableRawSpan(_unsafeBytes: buffer)
423 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
424 | }
425 | }
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:26: error: cannot find 'unsafe' in scope
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
440 | buffer = UnsafeMutableRawBufferPointer(start: nil, count: 0)
441 | case .inline(let inline):
442 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
443 | start: UnsafeMutableRawPointer(Builtin.addressOfBorrow(self)),
444 | count: inline.count
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:26: error: cannot find 'unsafe' in scope
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
449 | slice.ensureUniqueReference()
450 | _representation = .large(slice)
451 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
452 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
453 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:26: error: cannot find 'unsafe' in scope
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- error: cannot find 'unsafe' in scope
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:33: warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
457 | slice.ensureUniqueReference()
458 | _representation = .slice(slice)
459 | buffer = unsafe UnsafeMutableRawBufferPointer(
| `- warning: result of 'UnsafeMutableRawBufferPointer' initializer is unused
460 | start: slice.storage.mutableBytes?.advanced(by: slice.startIndex), count: slice.count
461 | )
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:24: error: cannot find 'unsafe' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'unsafe' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:31: error: cannot find 'MutableSpan' in scope
461 | )
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
| `- error: cannot find 'MutableSpan' in scope
464 | return unsafe _overrideLifetime(span, mutating: &self)
465 | #endif
/host/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:27: error: cannot find '_overrideLifetime' in scope
462 | }
463 | let span = unsafe MutableSpan<UInt8>(_unsafeBytes: buffer)
464 | return unsafe _overrideLifetime(span, mutating: &self)
| `- error: cannot find '_overrideLifetime' in scope
465 | #endif
466 | }
BUILD FAILURE 6.0 linux