Build Information
Failed to build swift-foundation, reference main (19e397), with Swift 6.1 for macOS (SPM) on 12 Dec 2025 23:48:13 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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))
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:198:19: warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
196 | }
197 | #else
198 | guard mktemp(templateFileSystemRep) != nil else {
| `- warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
199 | throw CocoaError.errorWithFilePath(inPath, errno: errno, reading: false, variant: variant)
200 | }
/Users/admin/builder/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 {
/Users/admin/builder/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)
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:26: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:26: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:434:30: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:30: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:26: 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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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))
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:198:19: warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
196 | }
197 | #else
198 | guard mktemp(templateFileSystemRep) != nil else {
| `- warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
199 | throw CocoaError.errorWithFilePath(inPath, errno: errno, reading: false, variant: variant)
200 | }
/Users/admin/builder/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 {
/Users/admin/builder/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)
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:26: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:26: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:434:30: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:30: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:26: 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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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))
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:198:19: warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
196 | }
197 | #else
198 | guard mktemp(templateFileSystemRep) != nil else {
| `- warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
199 | throw CocoaError.errorWithFilePath(inPath, errno: errno, reading: false, variant: variant)
200 | }
/Users/admin/builder/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 {
/Users/admin/builder/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)
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:26: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:26: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:434:30: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:30: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:26: 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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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))
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:198:19: warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
196 | }
197 | #else
198 | guard mktemp(templateFileSystemRep) != nil else {
| `- warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
199 | throw CocoaError.errorWithFilePath(inPath, errno: errno, reading: false, variant: variant)
200 | }
/Users/admin/builder/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 {
/Users/admin/builder/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)
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:26: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:26: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:434:30: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:30: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:26: 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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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))
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:198:19: warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
196 | }
197 | #else
198 | guard mktemp(templateFileSystemRep) != nil else {
| `- warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
199 | throw CocoaError.errorWithFilePath(inPath, errno: errno, reading: false, variant: variant)
200 | }
/Users/admin/builder/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 {
/Users/admin/builder/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)
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:363:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:368:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:372:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:376:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:377:26: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:386:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:401:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:410:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:418:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:422:30: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:423:26: 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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:434:30: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:442:32: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:451:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:459:32: 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 | )
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:463:30: 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
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:464:26: 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 | }
/Users/admin/builder/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 |
/Users/admin/builder/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))
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/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)
/Users/admin/builder/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
/Users/admin/builder/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))
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data+Writing.swift:198:19: warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
196 | }
197 | #else
198 | guard mktemp(templateFileSystemRep) != nil else {
| `- warning: 'mktemp' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of mktemp(3), it is highly recommended that you use mkstemp(3) instead.
199 | throw CocoaError.errorWithFilePath(inPath, errno: errno, reading: false, variant: variant)
200 | }
/Users/admin/builder/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 {
/Users/admin/builder/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)
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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 {
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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 | }
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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 | )
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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 | }
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:394:19: error: expected identifier, index or self in lifetime dependence specifier
392 | @_alwaysEmitIntoClient
393 | public var mutableBytes: MutableRawSpan {
394 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
395 | mutating get {
396 | let buffer: UnsafeMutableRawBufferPointer
/Users/admin/builder/spi-builder-workspace/Sources/FoundationEssentials/Data/Data.swift:430:19: error: expected identifier, index or self in lifetime dependence specifier
428 | @_alwaysEmitIntoClient
429 | public var mutableSpan: MutableSpan<UInt8> {
430 | @lifetime(&self)
| `- error: expected identifier, index or self in lifetime dependence specifier
431 | mutating get {
432 | #if false // see https://github.com/swiftlang/swift/issues/81218
BUILD FAILURE 6.1 macosSpm