Build Information
Failed to build swift-binary-parsing, reference main (7c3165
), with Swift 6.2 (beta) for Linux on 9 Sep 2025 03:23:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
| `- error: unknown attribute '_lifetime'
350 | public init(parsing input: inout ParserSpan, endianness: Endianness)
351 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:363:4: error: unknown attribute '_lifetime'
361 | @unsafe
362 | @inlinable
363 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
364 | public init(_unchecked _: Void, parsing input: inout ParserSpan) {
365 | self = unsafe input.consumeUnchecked(type: Self.self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:385:4: error: unknown attribute '_lifetime'
383 |
384 | @unsafe
385 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
386 | @available(
387 | *, deprecated,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:399:4: error: unknown attribute '_lifetime'
397 | @unsafe
398 | @inlinable
399 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
400 | public init(
401 | _unchecked _: Void, parsingBigEndian input: inout ParserSpan, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:423:4: error: unknown attribute '_lifetime'
421 | /// bytes, or if the parsed value overflows this integer type.
422 | @inlinable
423 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
424 | public init(parsingBigEndian input: inout ParserSpan, byteCount: Int)
425 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:432:4: error: unknown attribute '_lifetime'
430 | @unsafe
431 | @inlinable
432 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
433 | public init(
434 | _unchecked _: Void, parsingLittleEndian input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:458:4: error: unknown attribute '_lifetime'
456 | /// bytes, or if the parsed value overflows this integer type.
457 | @inlinable
458 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
459 | public init(parsingLittleEndian input: inout ParserSpan, byteCount: Int)
460 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:467:4: error: unknown attribute '_lifetime'
465 | @unsafe
466 | @inlinable
467 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
468 | public init(
469 | _unchecked _: Void, parsing input: inout ParserSpan, endianness: Endianness,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:495:4: error: unknown attribute '_lifetime'
493 | /// padding bytes are invalid.
494 | @inlinable
495 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
496 | public init(
497 | parsing input: inout ParserSpan, endianness: Endianness, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:505:4: error: unknown attribute '_lifetime'
503 | @unsafe
504 | @inlinable
505 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
506 | public init<T: MultiByteInteger>(
507 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:540:4: error: unknown attribute '_lifetime'
538 | /// overflows.
539 | @inlinable
540 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
541 | public init<T: MultiByteInteger>(
542 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:551:4: error: unknown attribute '_lifetime'
549 | @unsafe
550 | @inlinable
551 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
552 | public init<T: MultiByteInteger>(
553 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:586:4: error: unknown attribute '_lifetime'
584 | /// overflows.
585 | @inlinable
586 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
587 | public init<T: MultiByteInteger>(
588 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:597:4: error: unknown attribute '_lifetime'
595 | @unsafe
596 | @inlinable
597 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
598 | public init<T: MultiByteInteger>(
599 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:637:4: error: unknown attribute '_lifetime'
635 | /// overflows.
636 | @inlinable
637 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
638 | public init<T: MultiByteInteger>(
639 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:652:4: error: unknown attribute '_lifetime'
650 | @unsafe
651 | @inlinable
652 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
653 | public init<T: SingleByteInteger>(
654 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:687:4: error: unknown attribute '_lifetime'
685 | /// overflows.
686 | @inlinable
687 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
688 | public init<T: SingleByteInteger>(
689 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:712:4: error: unknown attribute '_lifetime'
710 | /// or if the maximum byte count for this type's size has been consumed.
711 | @inlinable
712 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
713 | public init(parsingLEB128 input: inout ParserSpan) throws(ParsingError) {
714 | var result: Self = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:783:4: error: unknown attribute '_lifetime'
781 | extension RawRepresentable where RawValue: MultiByteInteger {
782 | @inlinable
783 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
784 | public init(parsingBigEndian input: inout ParserSpan) throws(ParsingError) {
785 | self = try Self(_rawValueThrowing: .init(parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:789:4: error: unknown attribute '_lifetime'
787 |
788 | @inlinable
789 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
790 | public init(parsingLittleEndian input: inout ParserSpan) throws(ParsingError)
791 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:796:4: error: unknown attribute '_lifetime'
794 |
795 | @inlinable
796 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
797 | public init(parsing input: inout ParserSpan, endianness: Endianness)
798 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:808:4: error: unknown attribute '_lifetime'
806 | extension RawRepresentable where RawValue: SingleByteInteger {
807 | @inlinable
808 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
809 | public init(parsing input: inout ParserSpan) throws(ParsingError) {
810 | guard let value = try Self(rawValue: .init(_parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:832:4: error: unknown attribute '_lifetime'
830 |
831 | @inlinable
832 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
833 | public init<T: MultiByteInteger>(
834 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:843:4: error: unknown attribute '_lifetime'
841 |
842 | @inlinable
843 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
844 | public init<T: MultiByteInteger>(
845 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:854:4: error: unknown attribute '_lifetime'
852 |
853 | @inlinable
854 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
855 | public init<T: MultiByteInteger>(
856 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:866:4: error: unknown attribute '_lifetime'
864 |
865 | @inlinable
866 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
867 | public init<T: SingleByteInteger>(
868 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:177:17: error: a mutating method cannot have a ~Escapable 'self'
175 | @inlinable
176 | @_lifetime(copy self)
177 | mutating func consumeUnchecked(type: UInt8.Type = UInt8.self) -> UInt8 {
| `- error: a mutating method cannot have a ~Escapable 'self'
178 | defer { _lowerBound &+= 1 }
179 | return unsafe _bytes.unsafeLoad(
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:187:17: error: a mutating method cannot have a ~Escapable 'self'
185 | @inlinable
186 | @_lifetime(copy self)
187 | mutating func consumeUnchecked<T: FixedWidthInteger & BitwiseCopyable>(
| `- error: a mutating method cannot have a ~Escapable 'self'
188 | type: T.Type
189 | ) -> T {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:42: error: a mutating method cannot return a ~Escapable result
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:17: error: a mutating method cannot have a ~Escapable 'self'
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:49: error: a mutating method cannot return a ~Escapable result
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:17: error: a mutating method cannot have a ~Escapable 'self'
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:169:17: error: a mutating method cannot have a ~Escapable 'self'
167 | @inlinable
168 | @discardableResult
169 | mutating func consume() -> UInt8? {
| `- error: a mutating method cannot have a ~Escapable 'self'
170 | guard !isEmpty else { return nil }
171 | return unsafe consumeUnchecked()
[390/406] Compiling BinaryParsing Array.swift
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:39:4: error: unknown attribute '_lifetime'
37 | @unsafe
38 | @inlinable
39 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
40 | init(
41 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:48:4: error: unknown attribute '_lifetime'
46 |
47 | @inlinable
48 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
49 | init(
50 | _parsingBigEndian input: inout ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:58:4: error: unknown attribute '_lifetime'
56 | @unsafe
57 | @inlinable
58 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
59 | init(
60 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:67:4: error: unknown attribute '_lifetime'
65 |
66 | @inlinable
67 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
68 | init(_parsingLittleEndian input: inout ParserSpan) throws(ParsingError) {
69 | try input._checkCount(minimum: MemoryLayout<Self>.size)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:75:4: error: unknown attribute '_lifetime'
73 | @unsafe
74 | @inlinable
75 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
76 | init(
77 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:113:4: error: unknown attribute '_lifetime'
111 | @unsafe
112 | @inlinable
113 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
114 | init(
115 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:136:4: error: unknown attribute '_lifetime'
134 | @unsafe
135 | @inlinable
136 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
137 | init(
138 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:198:4: error: unknown attribute '_lifetime'
196 | @unsafe
197 | @inlinable
198 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
199 | init(
200 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:235:4: error: unknown attribute '_lifetime'
233 | @unsafe
234 | @inlinable
235 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
236 | init(
237 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:265:4: error: unknown attribute '_lifetime'
263 |
264 | @inlinable
265 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
266 | init(
267 | _parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:286:4: error: unknown attribute '_lifetime'
284 | @unsafe
285 | @inlinable
286 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
287 | public init(_unchecked _: Void, parsingBigEndian input: inout ParserSpan) {
288 | unsafe self.init(_unchecked: (), _parsingBigEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:300:4: error: unknown attribute '_lifetime'
298 | /// this integer type.
299 | @inlinable
300 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
301 | public init(parsingBigEndian input: inout ParserSpan) throws(ParsingError) {
302 | try self.init(_parsingBigEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:307:4: error: unknown attribute '_lifetime'
305 | @unsafe
306 | @inlinable
307 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
308 | public init(_unchecked _: Void, parsingLittleEndian input: inout ParserSpan) {
309 | unsafe self.init(_unchecked: (), _parsingLittleEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:321:4: error: unknown attribute '_lifetime'
319 | /// this integer type.
320 | @inlinable
321 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
322 | public init(parsingLittleEndian input: inout ParserSpan) throws(ParsingError)
323 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:329:4: error: unknown attribute '_lifetime'
327 | @unsafe
328 | @inlinable
329 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
330 | public init(
331 | _unchecked _: Void, parsing input: inout ParserSpan, endianness: Endianness
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:349:4: error: unknown attribute '_lifetime'
347 | /// this integer type.
348 | @inlinable
349 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
350 | public init(parsing input: inout ParserSpan, endianness: Endianness)
351 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:363:4: error: unknown attribute '_lifetime'
361 | @unsafe
362 | @inlinable
363 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
364 | public init(_unchecked _: Void, parsing input: inout ParserSpan) {
365 | self = unsafe input.consumeUnchecked(type: Self.self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:385:4: error: unknown attribute '_lifetime'
383 |
384 | @unsafe
385 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
386 | @available(
387 | *, deprecated,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:399:4: error: unknown attribute '_lifetime'
397 | @unsafe
398 | @inlinable
399 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
400 | public init(
401 | _unchecked _: Void, parsingBigEndian input: inout ParserSpan, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:423:4: error: unknown attribute '_lifetime'
421 | /// bytes, or if the parsed value overflows this integer type.
422 | @inlinable
423 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
424 | public init(parsingBigEndian input: inout ParserSpan, byteCount: Int)
425 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:432:4: error: unknown attribute '_lifetime'
430 | @unsafe
431 | @inlinable
432 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
433 | public init(
434 | _unchecked _: Void, parsingLittleEndian input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:458:4: error: unknown attribute '_lifetime'
456 | /// bytes, or if the parsed value overflows this integer type.
457 | @inlinable
458 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
459 | public init(parsingLittleEndian input: inout ParserSpan, byteCount: Int)
460 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:467:4: error: unknown attribute '_lifetime'
465 | @unsafe
466 | @inlinable
467 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
468 | public init(
469 | _unchecked _: Void, parsing input: inout ParserSpan, endianness: Endianness,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:495:4: error: unknown attribute '_lifetime'
493 | /// padding bytes are invalid.
494 | @inlinable
495 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
496 | public init(
497 | parsing input: inout ParserSpan, endianness: Endianness, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:505:4: error: unknown attribute '_lifetime'
503 | @unsafe
504 | @inlinable
505 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
506 | public init<T: MultiByteInteger>(
507 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:540:4: error: unknown attribute '_lifetime'
538 | /// overflows.
539 | @inlinable
540 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
541 | public init<T: MultiByteInteger>(
542 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:551:4: error: unknown attribute '_lifetime'
549 | @unsafe
550 | @inlinable
551 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
552 | public init<T: MultiByteInteger>(
553 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:586:4: error: unknown attribute '_lifetime'
584 | /// overflows.
585 | @inlinable
586 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
587 | public init<T: MultiByteInteger>(
588 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:597:4: error: unknown attribute '_lifetime'
595 | @unsafe
596 | @inlinable
597 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
598 | public init<T: MultiByteInteger>(
599 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:637:4: error: unknown attribute '_lifetime'
635 | /// overflows.
636 | @inlinable
637 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
638 | public init<T: MultiByteInteger>(
639 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:652:4: error: unknown attribute '_lifetime'
650 | @unsafe
651 | @inlinable
652 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
653 | public init<T: SingleByteInteger>(
654 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:687:4: error: unknown attribute '_lifetime'
685 | /// overflows.
686 | @inlinable
687 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
688 | public init<T: SingleByteInteger>(
689 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:712:4: error: unknown attribute '_lifetime'
710 | /// or if the maximum byte count for this type's size has been consumed.
711 | @inlinable
712 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
713 | public init(parsingLEB128 input: inout ParserSpan) throws(ParsingError) {
714 | var result: Self = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:783:4: error: unknown attribute '_lifetime'
781 | extension RawRepresentable where RawValue: MultiByteInteger {
782 | @inlinable
783 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
784 | public init(parsingBigEndian input: inout ParserSpan) throws(ParsingError) {
785 | self = try Self(_rawValueThrowing: .init(parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:789:4: error: unknown attribute '_lifetime'
787 |
788 | @inlinable
789 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
790 | public init(parsingLittleEndian input: inout ParserSpan) throws(ParsingError)
791 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:796:4: error: unknown attribute '_lifetime'
794 |
795 | @inlinable
796 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
797 | public init(parsing input: inout ParserSpan, endianness: Endianness)
798 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:808:4: error: unknown attribute '_lifetime'
806 | extension RawRepresentable where RawValue: SingleByteInteger {
807 | @inlinable
808 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
809 | public init(parsing input: inout ParserSpan) throws(ParsingError) {
810 | guard let value = try Self(rawValue: .init(_parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:832:4: error: unknown attribute '_lifetime'
830 |
831 | @inlinable
832 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
833 | public init<T: MultiByteInteger>(
834 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:843:4: error: unknown attribute '_lifetime'
841 |
842 | @inlinable
843 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
844 | public init<T: MultiByteInteger>(
845 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:854:4: error: unknown attribute '_lifetime'
852 |
853 | @inlinable
854 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
855 | public init<T: MultiByteInteger>(
856 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:866:4: error: unknown attribute '_lifetime'
864 |
865 | @inlinable
866 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
867 | public init<T: SingleByteInteger>(
868 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:177:17: error: a mutating method cannot have a ~Escapable 'self'
175 | @inlinable
176 | @_lifetime(copy self)
177 | mutating func consumeUnchecked(type: UInt8.Type = UInt8.self) -> UInt8 {
| `- error: a mutating method cannot have a ~Escapable 'self'
178 | defer { _lowerBound &+= 1 }
179 | return unsafe _bytes.unsafeLoad(
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:187:17: error: a mutating method cannot have a ~Escapable 'self'
185 | @inlinable
186 | @_lifetime(copy self)
187 | mutating func consumeUnchecked<T: FixedWidthInteger & BitwiseCopyable>(
| `- error: a mutating method cannot have a ~Escapable 'self'
188 | type: T.Type
189 | ) -> T {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:42: error: a mutating method cannot return a ~Escapable result
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:17: error: a mutating method cannot have a ~Escapable 'self'
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:49: error: a mutating method cannot return a ~Escapable result
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:17: error: a mutating method cannot have a ~Escapable 'self'
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:169:17: error: a mutating method cannot have a ~Escapable 'self'
167 | @inlinable
168 | @discardableResult
169 | mutating func consume() -> UInt8? {
| `- error: a mutating method cannot have a ~Escapable 'self'
170 | guard !isEmpty else { return nil }
171 | return unsafe consumeUnchecked()
/host/spi-builder-workspace/Sources/BinaryParsing/Macros/MagicNumber.swift:12:2: error: unknown attribute '_lifetime'
10 | //===----------------------------------------------------------------------===//
11 |
12 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
13 | public func _loadAndCheckDirectBytes<
14 | T: FixedWidthInteger & MultiByteInteger & BitwiseCopyable
/host/spi-builder-workspace/Sources/BinaryParsing/Macros/MagicNumber.swift:26:2: error: unknown attribute '_lifetime'
24 | }
25 |
26 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
27 | public func _loadAndCheckDirectBytesByteOrder<
28 | T: FixedWidthInteger & MultiByteInteger & BitwiseCopyable
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Macros/MagicNumber.swift:12:2: error: unknown attribute '_lifetime'
10 | //===----------------------------------------------------------------------===//
11 |
12 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
13 | public func _loadAndCheckDirectBytes<
14 | T: FixedWidthInteger & MultiByteInteger & BitwiseCopyable
/host/spi-builder-workspace/Sources/BinaryParsing/Macros/MagicNumber.swift:26:2: error: unknown attribute '_lifetime'
24 | }
25 |
26 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
27 | public func _loadAndCheckDirectBytesByteOrder<
28 | T: FixedWidthInteger & MultiByteInteger & BitwiseCopyable
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Macros/MagicNumber.swift:12:2: error: unknown attribute '_lifetime'
10 | //===----------------------------------------------------------------------===//
11 |
12 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
13 | public func _loadAndCheckDirectBytes<
14 | T: FixedWidthInteger & MultiByteInteger & BitwiseCopyable
/host/spi-builder-workspace/Sources/BinaryParsing/Macros/MagicNumber.swift:26:2: error: unknown attribute '_lifetime'
24 | }
25 |
26 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
27 | public func _loadAndCheckDirectBytesByteOrder<
28 | T: FixedWidthInteger & MultiByteInteger & BitwiseCopyable
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:27:29: error: a method cannot return a ~Escapable result
25 | @_lifetime(copy self)
26 | public func seeking(toRange range: ParserRange)
27 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
28 | {
29 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:25:4: error: unknown attribute '_lifetime'
23 | /// - Throws: A `ParsingError` if `range` is out of bounds for this span.
24 | @inlinable
25 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
26 | public func seeking(toRange range: ParserRange)
27 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:65:29: error: a method cannot return a ~Escapable result
63 | @_lifetime(copy self)
64 | public func seeking(toRelativeOffset offset: some FixedWidthInteger)
65 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
66 | {
67 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:63:4: error: unknown attribute '_lifetime'
61 | /// `0...count`.
62 | @inlinable
63 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
64 | public func seeking(toRelativeOffset offset: some FixedWidthInteger)
65 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:107:29: error: a method cannot return a ~Escapable result
105 | @_lifetime(copy self)
106 | public func seeking(toAbsoluteOffset offset: some FixedWidthInteger)
107 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
108 | {
109 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:105:4: error: unknown attribute '_lifetime'
103 | /// `0...bytes.count`.
104 | @inlinable
105 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
106 | public func seeking(toAbsoluteOffset offset: some FixedWidthInteger)
107 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:147:29: error: a method cannot return a ~Escapable result
145 | @_lifetime(copy self)
146 | public func seeking(toOffsetFromEnd offset: some FixedWidthInteger)
147 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
148 | {
149 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:145:4: error: unknown attribute '_lifetime'
143 | /// `0...bytes.count`.
144 | @inlinable
145 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
146 | public func seeking(toOffsetFromEnd offset: some FixedWidthInteger)
147 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:168:24: error: a mutating method cannot have a ~Escapable 'self'
166 | @inlinable
167 | @_lifetime(&self)
168 | public mutating func seek(toRange range: ParserRange) throws(ParsingError) {
| `- error: a mutating method cannot have a ~Escapable 'self'
169 | guard (0..._bytes.byteCount).contains(range.lowerBound),
170 | (0..._bytes.byteCount).contains(range.upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:167:4: error: unknown attribute '_lifetime'
165 | /// - Throws: A `ParsingError` if `range` is out of bounds for this span.
166 | @inlinable
167 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
168 | public mutating func seek(toRange range: ParserRange) throws(ParsingError) {
169 | guard (0..._bytes.byteCount).contains(range.lowerBound),
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:208:24: error: a mutating method cannot have a ~Escapable 'self'
206 | @inlinable
207 | @_lifetime(&self)
208 | public mutating func seek(toRelativeOffset offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
209 | throws(ParsingError)
210 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:207:4: error: unknown attribute '_lifetime'
205 | /// `0...count`.
206 | @inlinable
207 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
208 | public mutating func seek(toRelativeOffset offset: some FixedWidthInteger)
209 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:253:24: error: a mutating method cannot have a ~Escapable 'self'
251 | @inlinable
252 | @_lifetime(&self)
253 | public mutating func seek(toAbsoluteOffset offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
254 | throws(ParsingError)
255 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:252:4: error: unknown attribute '_lifetime'
250 | /// `0...bytes.count`.
251 | @inlinable
252 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
253 | public mutating func seek(toAbsoluteOffset offset: some FixedWidthInteger)
254 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:297:24: error: a mutating method cannot have a ~Escapable 'self'
295 | @inlinable
296 | @_lifetime(&self)
297 | public mutating func seek(toOffsetFromEnd offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
298 | throws(ParsingError)
299 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:296:4: error: unknown attribute '_lifetime'
294 | /// `0...count`.
295 | @inlinable
296 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
297 | public mutating func seek(toOffsetFromEnd offset: some FixedWidthInteger)
298 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:30:10: error: an initializer cannot return a ~Escapable result
28 | @inlinable
29 | @_lifetime(copy bytes)
30 | public init(_ bytes: RawSpan) {
| `- error: an initializer cannot return a ~Escapable result
31 | self._bytes = bytes
32 | self._lowerBound = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:38:3: error: an initializer cannot return a ~Escapable result
36 | @inlinable
37 | @_lifetime(copy other)
38 | init(copying other: borrowing ParserSpan) {
| `- error: an initializer cannot return a ~Escapable result
39 | self._bytes = other._bytes
40 | self._lowerBound = other._lowerBound
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:47:10: error: an initializer cannot return a ~Escapable result
45 | @inlinable
46 | @_lifetime(borrow buffer)
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
| `- error: an initializer cannot return a ~Escapable result
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
49 | self._lowerBound = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:32:29: error: a mutating method cannot return a ~Escapable result
30 | @_lifetime(copy self)
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
32 | throws(ParsingError) -> ParserSpan
| `- error: a mutating method cannot return a ~Escapable result
33 | {
34 | guard let byteCount = Int(exactly: byteCount), byteCount >= 0 else {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:31:24: error: a mutating method cannot have a ~Escapable 'self'
29 | @inlinable
30 | @_lifetime(copy self)
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
32 | throws(ParsingError) -> ParserSpan
33 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:30:4: error: unknown attribute '_lifetime'
28 | /// original span.
29 | @inlinable
30 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
32 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:67:29: error: a mutating method cannot return a ~Escapable result
65 | objectStride: some FixedWidthInteger,
66 | objectCount: some FixedWidthInteger
67 | ) throws(ParsingError) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
68 | guard let objectCount = Int(exactly: objectCount),
69 | let objectStride = Int(exactly: objectStride),
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:64:24: error: a mutating method cannot have a ~Escapable 'self'
62 | @inlinable
63 | @_lifetime(copy self)
64 | public mutating func sliceSpan(
| `- error: a mutating method cannot have a ~Escapable 'self'
65 | objectStride: some FixedWidthInteger,
66 | objectCount: some FixedWidthInteger
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:63:4: error: unknown attribute '_lifetime'
61 | /// if the product is not in the range `0...count`.
62 | @inlinable
63 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
64 | public mutating func sliceSpan(
65 | objectStride: some FixedWidthInteger,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:102:24: error: a mutating method cannot have a ~Escapable 'self'
100 | @inlinable
101 | @_lifetime(&self)
102 | public mutating func sliceRange(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
103 | throws(ParsingError) -> ParserRange
104 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:101:4: error: unknown attribute '_lifetime'
99 | /// original span.
100 | @inlinable
101 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
102 | public mutating func sliceRange(byteCount: some FixedWidthInteger)
103 | throws(ParsingError) -> ParserRange
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:133:24: error: a mutating method cannot have a ~Escapable 'self'
131 | @inlinable
132 | @_lifetime(&self)
133 | public mutating func sliceRange(
| `- error: a mutating method cannot have a ~Escapable 'self'
134 | objectStride: some FixedWidthInteger,
135 | objectCount: some FixedWidthInteger
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:132:4: error: unknown attribute '_lifetime'
130 | /// if the product is not in the range `0...count`.
131 | @inlinable
132 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
133 | public mutating func sliceRange(
134 | objectStride: some FixedWidthInteger,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:152:24: error: a mutating method cannot have a ~Escapable 'self'
150 | @inlinable
151 | @_lifetime(&self)
152 | public mutating func sliceRemainingRange() -> ParserRange {
| `- error: a mutating method cannot have a ~Escapable 'self'
153 | divide(atOffset: self.count).parserRange
154 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:151:4: error: unknown attribute '_lifetime'
149 | /// by this parser span.
150 | @inlinable
151 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
152 | public mutating func sliceRemainingRange() -> ParserRange {
153 | divide(atOffset: self.count).parserRange
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:180:29: error: a mutating method cannot return a ~Escapable result
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
180 | throws(ParsingError) -> UTF8Span
| `- error: a mutating method cannot return a ~Escapable result
181 | {
182 | let rawSpan = try sliceSpan(byteCount: byteCount).bytes
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:179:24: error: a mutating method cannot have a ~Escapable 'self'
177 | @_lifetime(copy self)
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
180 | throws(ParsingError) -> UTF8Span
181 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:177:4: error: unknown attribute '_lifetime'
175 | /// span, or if the bytes don't form valid UTF-8.
176 | @inlinable
177 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:42: error: a mutating method cannot return a ~Escapable result
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:17: error: a mutating method cannot have a ~Escapable 'self'
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:49: error: a mutating method cannot return a ~Escapable result
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:17: error: a mutating method cannot have a ~Escapable 'self'
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:155:29: error: a mutating method cannot return a ~Escapable result
153 | internal mutating func _divide(
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
156 | guard let count = Int(exactly: count), count >= 0 else {
157 | throw ParsingError(status: .invalidValue, location: startPosition)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:153:26: error: a mutating method cannot have a ~Escapable 'self'
151 | @_lifetime(copy self)
152 | @usableFromInline
153 | internal mutating func _divide(
| `- error: a mutating method cannot have a ~Escapable 'self'
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:27:29: error: a method cannot return a ~Escapable result
25 | @_lifetime(copy self)
26 | public func seeking(toRange range: ParserRange)
27 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
28 | {
29 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:25:4: error: unknown attribute '_lifetime'
23 | /// - Throws: A `ParsingError` if `range` is out of bounds for this span.
24 | @inlinable
25 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
26 | public func seeking(toRange range: ParserRange)
27 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:65:29: error: a method cannot return a ~Escapable result
63 | @_lifetime(copy self)
64 | public func seeking(toRelativeOffset offset: some FixedWidthInteger)
65 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
66 | {
67 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:63:4: error: unknown attribute '_lifetime'
61 | /// `0...count`.
62 | @inlinable
63 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
64 | public func seeking(toRelativeOffset offset: some FixedWidthInteger)
65 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:107:29: error: a method cannot return a ~Escapable result
105 | @_lifetime(copy self)
106 | public func seeking(toAbsoluteOffset offset: some FixedWidthInteger)
107 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
108 | {
109 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:105:4: error: unknown attribute '_lifetime'
103 | /// `0...bytes.count`.
104 | @inlinable
105 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
106 | public func seeking(toAbsoluteOffset offset: some FixedWidthInteger)
107 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:147:29: error: a method cannot return a ~Escapable result
145 | @_lifetime(copy self)
146 | public func seeking(toOffsetFromEnd offset: some FixedWidthInteger)
147 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
148 | {
149 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:145:4: error: unknown attribute '_lifetime'
143 | /// `0...bytes.count`.
144 | @inlinable
145 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
146 | public func seeking(toOffsetFromEnd offset: some FixedWidthInteger)
147 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:168:24: error: a mutating method cannot have a ~Escapable 'self'
166 | @inlinable
167 | @_lifetime(&self)
168 | public mutating func seek(toRange range: ParserRange) throws(ParsingError) {
| `- error: a mutating method cannot have a ~Escapable 'self'
169 | guard (0..._bytes.byteCount).contains(range.lowerBound),
170 | (0..._bytes.byteCount).contains(range.upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:167:4: error: unknown attribute '_lifetime'
165 | /// - Throws: A `ParsingError` if `range` is out of bounds for this span.
166 | @inlinable
167 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
168 | public mutating func seek(toRange range: ParserRange) throws(ParsingError) {
169 | guard (0..._bytes.byteCount).contains(range.lowerBound),
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:208:24: error: a mutating method cannot have a ~Escapable 'self'
206 | @inlinable
207 | @_lifetime(&self)
208 | public mutating func seek(toRelativeOffset offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
209 | throws(ParsingError)
210 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:207:4: error: unknown attribute '_lifetime'
205 | /// `0...count`.
206 | @inlinable
207 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
208 | public mutating func seek(toRelativeOffset offset: some FixedWidthInteger)
209 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:253:24: error: a mutating method cannot have a ~Escapable 'self'
251 | @inlinable
252 | @_lifetime(&self)
253 | public mutating func seek(toAbsoluteOffset offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
254 | throws(ParsingError)
255 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:252:4: error: unknown attribute '_lifetime'
250 | /// `0...bytes.count`.
251 | @inlinable
252 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
253 | public mutating func seek(toAbsoluteOffset offset: some FixedWidthInteger)
254 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:297:24: error: a mutating method cannot have a ~Escapable 'self'
295 | @inlinable
296 | @_lifetime(&self)
297 | public mutating func seek(toOffsetFromEnd offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
298 | throws(ParsingError)
299 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:296:4: error: unknown attribute '_lifetime'
294 | /// `0...count`.
295 | @inlinable
296 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
297 | public mutating func seek(toOffsetFromEnd offset: some FixedWidthInteger)
298 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:30:10: error: an initializer cannot return a ~Escapable result
28 | @inlinable
29 | @_lifetime(copy bytes)
30 | public init(_ bytes: RawSpan) {
| `- error: an initializer cannot return a ~Escapable result
31 | self._bytes = bytes
32 | self._lowerBound = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:38:3: error: an initializer cannot return a ~Escapable result
36 | @inlinable
37 | @_lifetime(copy other)
38 | init(copying other: borrowing ParserSpan) {
| `- error: an initializer cannot return a ~Escapable result
39 | self._bytes = other._bytes
40 | self._lowerBound = other._lowerBound
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:47:10: error: an initializer cannot return a ~Escapable result
45 | @inlinable
46 | @_lifetime(borrow buffer)
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
| `- error: an initializer cannot return a ~Escapable result
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
49 | self._lowerBound = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:32:29: error: a mutating method cannot return a ~Escapable result
30 | @_lifetime(copy self)
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
32 | throws(ParsingError) -> ParserSpan
| `- error: a mutating method cannot return a ~Escapable result
33 | {
34 | guard let byteCount = Int(exactly: byteCount), byteCount >= 0 else {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:31:24: error: a mutating method cannot have a ~Escapable 'self'
29 | @inlinable
30 | @_lifetime(copy self)
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
32 | throws(ParsingError) -> ParserSpan
33 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:30:4: error: unknown attribute '_lifetime'
28 | /// original span.
29 | @inlinable
30 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
32 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:67:29: error: a mutating method cannot return a ~Escapable result
65 | objectStride: some FixedWidthInteger,
66 | objectCount: some FixedWidthInteger
67 | ) throws(ParsingError) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
68 | guard let objectCount = Int(exactly: objectCount),
69 | let objectStride = Int(exactly: objectStride),
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:64:24: error: a mutating method cannot have a ~Escapable 'self'
62 | @inlinable
63 | @_lifetime(copy self)
64 | public mutating func sliceSpan(
| `- error: a mutating method cannot have a ~Escapable 'self'
65 | objectStride: some FixedWidthInteger,
66 | objectCount: some FixedWidthInteger
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:63:4: error: unknown attribute '_lifetime'
61 | /// if the product is not in the range `0...count`.
62 | @inlinable
63 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
64 | public mutating func sliceSpan(
65 | objectStride: some FixedWidthInteger,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:102:24: error: a mutating method cannot have a ~Escapable 'self'
100 | @inlinable
101 | @_lifetime(&self)
102 | public mutating func sliceRange(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
103 | throws(ParsingError) -> ParserRange
104 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:101:4: error: unknown attribute '_lifetime'
99 | /// original span.
100 | @inlinable
101 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
102 | public mutating func sliceRange(byteCount: some FixedWidthInteger)
103 | throws(ParsingError) -> ParserRange
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:133:24: error: a mutating method cannot have a ~Escapable 'self'
131 | @inlinable
132 | @_lifetime(&self)
133 | public mutating func sliceRange(
| `- error: a mutating method cannot have a ~Escapable 'self'
134 | objectStride: some FixedWidthInteger,
135 | objectCount: some FixedWidthInteger
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:132:4: error: unknown attribute '_lifetime'
130 | /// if the product is not in the range `0...count`.
131 | @inlinable
132 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
133 | public mutating func sliceRange(
134 | objectStride: some FixedWidthInteger,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:152:24: error: a mutating method cannot have a ~Escapable 'self'
150 | @inlinable
151 | @_lifetime(&self)
152 | public mutating func sliceRemainingRange() -> ParserRange {
| `- error: a mutating method cannot have a ~Escapable 'self'
153 | divide(atOffset: self.count).parserRange
154 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:151:4: error: unknown attribute '_lifetime'
149 | /// by this parser span.
150 | @inlinable
151 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
152 | public mutating func sliceRemainingRange() -> ParserRange {
153 | divide(atOffset: self.count).parserRange
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:180:29: error: a mutating method cannot return a ~Escapable result
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
180 | throws(ParsingError) -> UTF8Span
| `- error: a mutating method cannot return a ~Escapable result
181 | {
182 | let rawSpan = try sliceSpan(byteCount: byteCount).bytes
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:179:24: error: a mutating method cannot have a ~Escapable 'self'
177 | @_lifetime(copy self)
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
180 | throws(ParsingError) -> UTF8Span
181 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:177:4: error: unknown attribute '_lifetime'
175 | /// span, or if the bytes don't form valid UTF-8.
176 | @inlinable
177 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:42: error: a mutating method cannot return a ~Escapable result
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:17: error: a mutating method cannot have a ~Escapable 'self'
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:49: error: a mutating method cannot return a ~Escapable result
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:17: error: a mutating method cannot have a ~Escapable 'self'
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:155:29: error: a mutating method cannot return a ~Escapable result
153 | internal mutating func _divide(
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
156 | guard let count = Int(exactly: count), count >= 0 else {
157 | throw ParsingError(status: .invalidValue, location: startPosition)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:153:26: error: a mutating method cannot have a ~Escapable 'self'
151 | @_lifetime(copy self)
152 | @usableFromInline
153 | internal mutating func _divide(
| `- error: a mutating method cannot have a ~Escapable 'self'
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:39:4: error: unknown attribute '_lifetime'
37 | @unsafe
38 | @inlinable
39 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
40 | init(
41 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:48:4: error: unknown attribute '_lifetime'
46 |
47 | @inlinable
48 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
49 | init(
50 | _parsingBigEndian input: inout ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:58:4: error: unknown attribute '_lifetime'
56 | @unsafe
57 | @inlinable
58 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
59 | init(
60 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:67:4: error: unknown attribute '_lifetime'
65 |
66 | @inlinable
67 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
68 | init(_parsingLittleEndian input: inout ParserSpan) throws(ParsingError) {
69 | try input._checkCount(minimum: MemoryLayout<Self>.size)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:75:4: error: unknown attribute '_lifetime'
73 | @unsafe
74 | @inlinable
75 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
76 | init(
77 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:113:4: error: unknown attribute '_lifetime'
111 | @unsafe
112 | @inlinable
113 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
114 | init(
115 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:136:4: error: unknown attribute '_lifetime'
134 | @unsafe
135 | @inlinable
136 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
137 | init(
138 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:198:4: error: unknown attribute '_lifetime'
196 | @unsafe
197 | @inlinable
198 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
199 | init(
200 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:235:4: error: unknown attribute '_lifetime'
233 | @unsafe
234 | @inlinable
235 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
236 | init(
237 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:265:4: error: unknown attribute '_lifetime'
263 |
264 | @inlinable
265 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
266 | init(
267 | _parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:286:4: error: unknown attribute '_lifetime'
284 | @unsafe
285 | @inlinable
286 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
287 | public init(_unchecked _: Void, parsingBigEndian input: inout ParserSpan) {
288 | unsafe self.init(_unchecked: (), _parsingBigEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:300:4: error: unknown attribute '_lifetime'
298 | /// this integer type.
299 | @inlinable
300 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
301 | public init(parsingBigEndian input: inout ParserSpan) throws(ParsingError) {
302 | try self.init(_parsingBigEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:307:4: error: unknown attribute '_lifetime'
305 | @unsafe
306 | @inlinable
307 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
308 | public init(_unchecked _: Void, parsingLittleEndian input: inout ParserSpan) {
309 | unsafe self.init(_unchecked: (), _parsingLittleEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:321:4: error: unknown attribute '_lifetime'
319 | /// this integer type.
320 | @inlinable
321 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
322 | public init(parsingLittleEndian input: inout ParserSpan) throws(ParsingError)
323 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:329:4: error: unknown attribute '_lifetime'
327 | @unsafe
328 | @inlinable
329 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
330 | public init(
331 | _unchecked _: Void, parsing input: inout ParserSpan, endianness: Endianness
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:349:4: error: unknown attribute '_lifetime'
347 | /// this integer type.
348 | @inlinable
349 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
350 | public init(parsing input: inout ParserSpan, endianness: Endianness)
351 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:363:4: error: unknown attribute '_lifetime'
361 | @unsafe
362 | @inlinable
363 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
364 | public init(_unchecked _: Void, parsing input: inout ParserSpan) {
365 | self = unsafe input.consumeUnchecked(type: Self.self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:385:4: error: unknown attribute '_lifetime'
383 |
384 | @unsafe
385 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
386 | @available(
387 | *, deprecated,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:399:4: error: unknown attribute '_lifetime'
397 | @unsafe
398 | @inlinable
399 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
400 | public init(
401 | _unchecked _: Void, parsingBigEndian input: inout ParserSpan, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:423:4: error: unknown attribute '_lifetime'
421 | /// bytes, or if the parsed value overflows this integer type.
422 | @inlinable
423 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
424 | public init(parsingBigEndian input: inout ParserSpan, byteCount: Int)
425 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:432:4: error: unknown attribute '_lifetime'
430 | @unsafe
431 | @inlinable
432 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
433 | public init(
434 | _unchecked _: Void, parsingLittleEndian input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:458:4: error: unknown attribute '_lifetime'
456 | /// bytes, or if the parsed value overflows this integer type.
457 | @inlinable
458 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
459 | public init(parsingLittleEndian input: inout ParserSpan, byteCount: Int)
460 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:467:4: error: unknown attribute '_lifetime'
465 | @unsafe
466 | @inlinable
467 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
468 | public init(
469 | _unchecked _: Void, parsing input: inout ParserSpan, endianness: Endianness,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:495:4: error: unknown attribute '_lifetime'
493 | /// padding bytes are invalid.
494 | @inlinable
495 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
496 | public init(
497 | parsing input: inout ParserSpan, endianness: Endianness, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:505:4: error: unknown attribute '_lifetime'
503 | @unsafe
504 | @inlinable
505 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
506 | public init<T: MultiByteInteger>(
507 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:540:4: error: unknown attribute '_lifetime'
538 | /// overflows.
539 | @inlinable
540 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
541 | public init<T: MultiByteInteger>(
542 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:551:4: error: unknown attribute '_lifetime'
549 | @unsafe
550 | @inlinable
551 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
552 | public init<T: MultiByteInteger>(
553 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:586:4: error: unknown attribute '_lifetime'
584 | /// overflows.
585 | @inlinable
586 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
587 | public init<T: MultiByteInteger>(
588 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:597:4: error: unknown attribute '_lifetime'
595 | @unsafe
596 | @inlinable
597 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
598 | public init<T: MultiByteInteger>(
599 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:637:4: error: unknown attribute '_lifetime'
635 | /// overflows.
636 | @inlinable
637 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
638 | public init<T: MultiByteInteger>(
639 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:652:4: error: unknown attribute '_lifetime'
650 | @unsafe
651 | @inlinable
652 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
653 | public init<T: SingleByteInteger>(
654 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:687:4: error: unknown attribute '_lifetime'
685 | /// overflows.
686 | @inlinable
687 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
688 | public init<T: SingleByteInteger>(
689 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:712:4: error: unknown attribute '_lifetime'
710 | /// or if the maximum byte count for this type's size has been consumed.
711 | @inlinable
712 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
713 | public init(parsingLEB128 input: inout ParserSpan) throws(ParsingError) {
714 | var result: Self = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:783:4: error: unknown attribute '_lifetime'
781 | extension RawRepresentable where RawValue: MultiByteInteger {
782 | @inlinable
783 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
784 | public init(parsingBigEndian input: inout ParserSpan) throws(ParsingError) {
785 | self = try Self(_rawValueThrowing: .init(parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:789:4: error: unknown attribute '_lifetime'
787 |
788 | @inlinable
789 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
790 | public init(parsingLittleEndian input: inout ParserSpan) throws(ParsingError)
791 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:796:4: error: unknown attribute '_lifetime'
794 |
795 | @inlinable
796 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
797 | public init(parsing input: inout ParserSpan, endianness: Endianness)
798 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:808:4: error: unknown attribute '_lifetime'
806 | extension RawRepresentable where RawValue: SingleByteInteger {
807 | @inlinable
808 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
809 | public init(parsing input: inout ParserSpan) throws(ParsingError) {
810 | guard let value = try Self(rawValue: .init(_parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:832:4: error: unknown attribute '_lifetime'
830 |
831 | @inlinable
832 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
833 | public init<T: MultiByteInteger>(
834 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:843:4: error: unknown attribute '_lifetime'
841 |
842 | @inlinable
843 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
844 | public init<T: MultiByteInteger>(
845 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:854:4: error: unknown attribute '_lifetime'
852 |
853 | @inlinable
854 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
855 | public init<T: MultiByteInteger>(
856 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:866:4: error: unknown attribute '_lifetime'
864 |
865 | @inlinable
866 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
867 | public init<T: SingleByteInteger>(
868 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:177:17: error: a mutating method cannot have a ~Escapable 'self'
175 | @inlinable
176 | @_lifetime(copy self)
177 | mutating func consumeUnchecked(type: UInt8.Type = UInt8.self) -> UInt8 {
| `- error: a mutating method cannot have a ~Escapable 'self'
178 | defer { _lowerBound &+= 1 }
179 | return unsafe _bytes.unsafeLoad(
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:187:17: error: a mutating method cannot have a ~Escapable 'self'
185 | @inlinable
186 | @_lifetime(copy self)
187 | mutating func consumeUnchecked<T: FixedWidthInteger & BitwiseCopyable>(
| `- error: a mutating method cannot have a ~Escapable 'self'
188 | type: T.Type
189 | ) -> T {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:42: error: a mutating method cannot return a ~Escapable result
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:17: error: a mutating method cannot have a ~Escapable 'self'
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:49: error: a mutating method cannot return a ~Escapable result
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:17: error: a mutating method cannot have a ~Escapable 'self'
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:169:17: error: a mutating method cannot have a ~Escapable 'self'
167 | @inlinable
168 | @discardableResult
169 | mutating func consume() -> UInt8? {
| `- error: a mutating method cannot have a ~Escapable 'self'
170 | guard !isEmpty else { return nil }
171 | return unsafe consumeUnchecked()
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:39:4: error: unknown attribute '_lifetime'
37 | @unsafe
38 | @inlinable
39 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
40 | init(
41 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:48:4: error: unknown attribute '_lifetime'
46 |
47 | @inlinable
48 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
49 | init(
50 | _parsingBigEndian input: inout ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:58:4: error: unknown attribute '_lifetime'
56 | @unsafe
57 | @inlinable
58 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
59 | init(
60 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:67:4: error: unknown attribute '_lifetime'
65 |
66 | @inlinable
67 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
68 | init(_parsingLittleEndian input: inout ParserSpan) throws(ParsingError) {
69 | try input._checkCount(minimum: MemoryLayout<Self>.size)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:75:4: error: unknown attribute '_lifetime'
73 | @unsafe
74 | @inlinable
75 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
76 | init(
77 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:113:4: error: unknown attribute '_lifetime'
111 | @unsafe
112 | @inlinable
113 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
114 | init(
115 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:136:4: error: unknown attribute '_lifetime'
134 | @unsafe
135 | @inlinable
136 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
137 | init(
138 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:198:4: error: unknown attribute '_lifetime'
196 | @unsafe
197 | @inlinable
198 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
199 | init(
200 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:235:4: error: unknown attribute '_lifetime'
233 | @unsafe
234 | @inlinable
235 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
236 | init(
237 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:265:4: error: unknown attribute '_lifetime'
263 |
264 | @inlinable
265 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
266 | init(
267 | _parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:286:4: error: unknown attribute '_lifetime'
284 | @unsafe
285 | @inlinable
286 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
287 | public init(_unchecked _: Void, parsingBigEndian input: inout ParserSpan) {
288 | unsafe self.init(_unchecked: (), _parsingBigEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:300:4: error: unknown attribute '_lifetime'
298 | /// this integer type.
299 | @inlinable
300 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
301 | public init(parsingBigEndian input: inout ParserSpan) throws(ParsingError) {
302 | try self.init(_parsingBigEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:307:4: error: unknown attribute '_lifetime'
305 | @unsafe
306 | @inlinable
307 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
308 | public init(_unchecked _: Void, parsingLittleEndian input: inout ParserSpan) {
309 | unsafe self.init(_unchecked: (), _parsingLittleEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:321:4: error: unknown attribute '_lifetime'
319 | /// this integer type.
320 | @inlinable
321 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
322 | public init(parsingLittleEndian input: inout ParserSpan) throws(ParsingError)
323 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:329:4: error: unknown attribute '_lifetime'
327 | @unsafe
328 | @inlinable
329 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
330 | public init(
331 | _unchecked _: Void, parsing input: inout ParserSpan, endianness: Endianness
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:349:4: error: unknown attribute '_lifetime'
347 | /// this integer type.
348 | @inlinable
349 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
350 | public init(parsing input: inout ParserSpan, endianness: Endianness)
351 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:363:4: error: unknown attribute '_lifetime'
361 | @unsafe
362 | @inlinable
363 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
364 | public init(_unchecked _: Void, parsing input: inout ParserSpan) {
365 | self = unsafe input.consumeUnchecked(type: Self.self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:385:4: error: unknown attribute '_lifetime'
383 |
384 | @unsafe
385 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
386 | @available(
387 | *, deprecated,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:399:4: error: unknown attribute '_lifetime'
397 | @unsafe
398 | @inlinable
399 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
400 | public init(
401 | _unchecked _: Void, parsingBigEndian input: inout ParserSpan, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:423:4: error: unknown attribute '_lifetime'
421 | /// bytes, or if the parsed value overflows this integer type.
422 | @inlinable
423 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
424 | public init(parsingBigEndian input: inout ParserSpan, byteCount: Int)
425 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:432:4: error: unknown attribute '_lifetime'
430 | @unsafe
431 | @inlinable
432 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
433 | public init(
434 | _unchecked _: Void, parsingLittleEndian input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:458:4: error: unknown attribute '_lifetime'
456 | /// bytes, or if the parsed value overflows this integer type.
457 | @inlinable
458 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
459 | public init(parsingLittleEndian input: inout ParserSpan, byteCount: Int)
460 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:467:4: error: unknown attribute '_lifetime'
465 | @unsafe
466 | @inlinable
467 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
468 | public init(
469 | _unchecked _: Void, parsing input: inout ParserSpan, endianness: Endianness,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:495:4: error: unknown attribute '_lifetime'
493 | /// padding bytes are invalid.
494 | @inlinable
495 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
496 | public init(
497 | parsing input: inout ParserSpan, endianness: Endianness, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:505:4: error: unknown attribute '_lifetime'
503 | @unsafe
504 | @inlinable
505 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
506 | public init<T: MultiByteInteger>(
507 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:540:4: error: unknown attribute '_lifetime'
538 | /// overflows.
539 | @inlinable
540 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
541 | public init<T: MultiByteInteger>(
542 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:551:4: error: unknown attribute '_lifetime'
549 | @unsafe
550 | @inlinable
551 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
552 | public init<T: MultiByteInteger>(
553 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:586:4: error: unknown attribute '_lifetime'
584 | /// overflows.
585 | @inlinable
586 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
587 | public init<T: MultiByteInteger>(
588 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:597:4: error: unknown attribute '_lifetime'
595 | @unsafe
596 | @inlinable
597 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
598 | public init<T: MultiByteInteger>(
599 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:637:4: error: unknown attribute '_lifetime'
635 | /// overflows.
636 | @inlinable
637 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
638 | public init<T: MultiByteInteger>(
639 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:652:4: error: unknown attribute '_lifetime'
650 | @unsafe
651 | @inlinable
652 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
653 | public init<T: SingleByteInteger>(
654 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:687:4: error: unknown attribute '_lifetime'
685 | /// overflows.
686 | @inlinable
687 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
688 | public init<T: SingleByteInteger>(
689 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:712:4: error: unknown attribute '_lifetime'
710 | /// or if the maximum byte count for this type's size has been consumed.
711 | @inlinable
712 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
713 | public init(parsingLEB128 input: inout ParserSpan) throws(ParsingError) {
714 | var result: Self = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:783:4: error: unknown attribute '_lifetime'
781 | extension RawRepresentable where RawValue: MultiByteInteger {
782 | @inlinable
783 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
784 | public init(parsingBigEndian input: inout ParserSpan) throws(ParsingError) {
785 | self = try Self(_rawValueThrowing: .init(parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:789:4: error: unknown attribute '_lifetime'
787 |
788 | @inlinable
789 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
790 | public init(parsingLittleEndian input: inout ParserSpan) throws(ParsingError)
791 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:796:4: error: unknown attribute '_lifetime'
794 |
795 | @inlinable
796 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
797 | public init(parsing input: inout ParserSpan, endianness: Endianness)
798 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:808:4: error: unknown attribute '_lifetime'
806 | extension RawRepresentable where RawValue: SingleByteInteger {
807 | @inlinable
808 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
809 | public init(parsing input: inout ParserSpan) throws(ParsingError) {
810 | guard let value = try Self(rawValue: .init(_parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:832:4: error: unknown attribute '_lifetime'
830 |
831 | @inlinable
832 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
833 | public init<T: MultiByteInteger>(
834 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:843:4: error: unknown attribute '_lifetime'
841 |
842 | @inlinable
843 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
844 | public init<T: MultiByteInteger>(
845 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:854:4: error: unknown attribute '_lifetime'
852 |
853 | @inlinable
854 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
855 | public init<T: MultiByteInteger>(
856 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:866:4: error: unknown attribute '_lifetime'
864 |
865 | @inlinable
866 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
867 | public init<T: SingleByteInteger>(
868 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:177:17: error: a mutating method cannot have a ~Escapable 'self'
175 | @inlinable
176 | @_lifetime(copy self)
177 | mutating func consumeUnchecked(type: UInt8.Type = UInt8.self) -> UInt8 {
| `- error: a mutating method cannot have a ~Escapable 'self'
178 | defer { _lowerBound &+= 1 }
179 | return unsafe _bytes.unsafeLoad(
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:187:17: error: a mutating method cannot have a ~Escapable 'self'
185 | @inlinable
186 | @_lifetime(copy self)
187 | mutating func consumeUnchecked<T: FixedWidthInteger & BitwiseCopyable>(
| `- error: a mutating method cannot have a ~Escapable 'self'
188 | type: T.Type
189 | ) -> T {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:42: error: a mutating method cannot return a ~Escapable result
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:17: error: a mutating method cannot have a ~Escapable 'self'
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:49: error: a mutating method cannot return a ~Escapable result
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:17: error: a mutating method cannot have a ~Escapable 'self'
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:169:17: error: a mutating method cannot have a ~Escapable 'self'
167 | @inlinable
168 | @discardableResult
169 | mutating func consume() -> UInt8? {
| `- error: a mutating method cannot have a ~Escapable 'self'
170 | guard !isEmpty else { return nil }
171 | return unsafe consumeUnchecked()
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:20:4: error: unknown attribute '_lifetime'
18 | /// - Parameter input: The `ParserSpan` to consume.
19 | @inlinable
20 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
21 | public init(parsingRemainingBytes input: inout ParserSpan) {
22 | defer { _ = input.divide(atOffset: input.count) }
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:37:4: error: unknown attribute '_lifetime'
35 | /// bytes remaining.
36 | @inlinable
37 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
38 | public init(parsing input: inout ParserSpan, byteCount: Int)
39 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:77:4: error: unknown attribute '_lifetime'
75 | /// representable.
76 | @inlinable
77 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
78 | public init(
79 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:122:4: error: unknown attribute '_lifetime'
120 | /// - Throws: An error if one is thrown from `parser`.
121 | @inlinable
122 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
123 | public init(
124 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:164:4: error: unknown attribute '_lifetime'
162 | /// - Throws: An error if one is thrown from `parser`.
163 | @inlinable
164 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
165 | public init<E>(
166 | parsingAll input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:42: error: a mutating method cannot return a ~Escapable result
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:17: error: a mutating method cannot have a ~Escapable 'self'
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:49: error: a mutating method cannot return a ~Escapable result
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:17: error: a mutating method cannot have a ~Escapable 'self'
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:155:29: error: a mutating method cannot return a ~Escapable result
153 | internal mutating func _divide(
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
156 | guard let count = Int(exactly: count), count >= 0 else {
157 | throw ParsingError(status: .invalidValue, location: startPosition)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:153:26: error: a mutating method cannot have a ~Escapable 'self'
151 | @_lifetime(copy self)
152 | @usableFromInline
153 | internal mutating func _divide(
| `- error: a mutating method cannot have a ~Escapable 'self'
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Data.swift:23:4: error: unknown attribute '_lifetime'
21 | /// - Parameter input: The `ParserSpan` to consume.
22 | @inlinable
23 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
24 | public init(parsingRemainingBytes input: inout ParserSpan) {
25 | defer { _ = input.divide(atOffset: input.count) }
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Data.swift:40:4: error: unknown attribute '_lifetime'
38 | /// bytes remaining.
39 | @inlinable
40 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
41 | public init(parsing input: inout ParserSpan, byteCount: Int)
42 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:20:4: error: unknown attribute '_lifetime'
18 | /// - Parameter input: The `ParserSpan` to consume.
19 | @inlinable
20 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
21 | public init(parsingRemainingBytes input: inout ParserSpan) {
22 | defer { _ = input.divide(atOffset: input.count) }
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:37:4: error: unknown attribute '_lifetime'
35 | /// bytes remaining.
36 | @inlinable
37 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
38 | public init(parsing input: inout ParserSpan, byteCount: Int)
39 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:77:4: error: unknown attribute '_lifetime'
75 | /// representable.
76 | @inlinable
77 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
78 | public init(
79 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:122:4: error: unknown attribute '_lifetime'
120 | /// - Throws: An error if one is thrown from `parser`.
121 | @inlinable
122 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
123 | public init(
124 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:164:4: error: unknown attribute '_lifetime'
162 | /// - Throws: An error if one is thrown from `parser`.
163 | @inlinable
164 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
165 | public init<E>(
166 | parsingAll input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:42: error: a mutating method cannot return a ~Escapable result
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:17: error: a mutating method cannot have a ~Escapable 'self'
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:49: error: a mutating method cannot return a ~Escapable result
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:17: error: a mutating method cannot have a ~Escapable 'self'
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:155:29: error: a mutating method cannot return a ~Escapable result
153 | internal mutating func _divide(
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
156 | guard let count = Int(exactly: count), count >= 0 else {
157 | throw ParsingError(status: .invalidValue, location: startPosition)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:153:26: error: a mutating method cannot have a ~Escapable 'self'
151 | @_lifetime(copy self)
152 | @usableFromInline
153 | internal mutating func _divide(
| `- error: a mutating method cannot have a ~Escapable 'self'
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Data.swift:23:4: error: unknown attribute '_lifetime'
21 | /// - Parameter input: The `ParserSpan` to consume.
22 | @inlinable
23 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
24 | public init(parsingRemainingBytes input: inout ParserSpan) {
25 | defer { _ = input.divide(atOffset: input.count) }
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Data.swift:40:4: error: unknown attribute '_lifetime'
38 | /// bytes remaining.
39 | @inlinable
40 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
41 | public init(parsing input: inout ParserSpan, byteCount: Int)
42 | throws(ParsingError)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[400/406] Emitting module BinaryParsing
/host/spi-builder-workspace/Sources/BinaryParsing/Macros/MagicNumber.swift:12:2: error: unknown attribute '_lifetime'
10 | //===----------------------------------------------------------------------===//
11 |
12 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
13 | public func _loadAndCheckDirectBytes<
14 | T: FixedWidthInteger & MultiByteInteger & BitwiseCopyable
/host/spi-builder-workspace/Sources/BinaryParsing/Macros/MagicNumber.swift:26:2: error: unknown attribute '_lifetime'
24 | }
25 |
26 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
27 | public func _loadAndCheckDirectBytesByteOrder<
28 | T: FixedWidthInteger & MultiByteInteger & BitwiseCopyable
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSource.swift:33:4: error: unknown attribute '_lifetime'
31 | /// let qoiImage = try QOI(parsing: imageData)
32 | public protocol ExpressibleByParsing {
33 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
34 | init(parsing input: inout ParserSpan) throws(ThrownParsingError)
35 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:30:10: error: an initializer cannot return a ~Escapable result
28 | @inlinable
29 | @_lifetime(copy bytes)
30 | public init(_ bytes: RawSpan) {
| `- error: an initializer cannot return a ~Escapable result
31 | self._bytes = bytes
32 | self._lowerBound = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:38:3: error: an initializer cannot return a ~Escapable result
36 | @inlinable
37 | @_lifetime(copy other)
38 | init(copying other: borrowing ParserSpan) {
| `- error: an initializer cannot return a ~Escapable result
39 | self._bytes = other._bytes
40 | self._lowerBound = other._lowerBound
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:47:10: error: an initializer cannot return a ~Escapable result
45 | @inlinable
46 | @_lifetime(borrow buffer)
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
| `- error: an initializer cannot return a ~Escapable result
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
49 | self._lowerBound = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:27:29: error: a method cannot return a ~Escapable result
25 | @_lifetime(copy self)
26 | public func seeking(toRange range: ParserRange)
27 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
28 | {
29 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:65:29: error: a method cannot return a ~Escapable result
63 | @_lifetime(copy self)
64 | public func seeking(toRelativeOffset offset: some FixedWidthInteger)
65 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
66 | {
67 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:107:29: error: a method cannot return a ~Escapable result
105 | @_lifetime(copy self)
106 | public func seeking(toAbsoluteOffset offset: some FixedWidthInteger)
107 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
108 | {
109 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:147:29: error: a method cannot return a ~Escapable result
145 | @_lifetime(copy self)
146 | public func seeking(toOffsetFromEnd offset: some FixedWidthInteger)
147 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
148 | {
149 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:18:7: error: the 'get' accessor cannot return a ~Escapable result
16 | public struct ParserSpan: ~Escapable, ~Copyable {
17 | @usableFromInline
18 | var _bytes: RawSpan
| `- error: the 'get' accessor cannot return a ~Escapable result
19 | @usableFromInline
20 | var _lowerBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:18:7: error: the 'set' accessor cannot have a ~Escapable 'self'
16 | public struct ParserSpan: ~Escapable, ~Copyable {
17 | @usableFromInline
18 | var _bytes: RawSpan
| `- error: the 'set' accessor cannot have a ~Escapable 'self'
19 | @usableFromInline
20 | var _lowerBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:18:7: error: the '_modify' accessor cannot return a ~Escapable result
16 | public struct ParserSpan: ~Escapable, ~Copyable {
17 | @usableFromInline
18 | var _bytes: RawSpan
| `- error: the '_modify' accessor cannot return a ~Escapable result
19 | @usableFromInline
20 | var _lowerBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:18:7: error: the '_modify' accessor cannot have a ~Escapable 'self'
16 | public struct ParserSpan: ~Escapable, ~Copyable {
17 | @usableFromInline
18 | var _bytes: RawSpan
| `- error: the '_modify' accessor cannot have a ~Escapable 'self'
19 | @usableFromInline
20 | var _lowerBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:20:7: error: the 'set' accessor cannot have a ~Escapable 'self'
18 | var _bytes: RawSpan
19 | @usableFromInline
20 | var _lowerBound: Int
| `- error: the 'set' accessor cannot have a ~Escapable 'self'
21 | @usableFromInline
22 | var _upperBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:20:7: error: the '_modify' accessor cannot have a ~Escapable 'self'
18 | var _bytes: RawSpan
19 | @usableFromInline
20 | var _lowerBound: Int
| `- error: the '_modify' accessor cannot have a ~Escapable 'self'
21 | @usableFromInline
22 | var _upperBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:22:7: error: the 'set' accessor cannot have a ~Escapable 'self'
20 | var _lowerBound: Int
21 | @usableFromInline
22 | var _upperBound: Int
| `- error: the 'set' accessor cannot have a ~Escapable 'self'
23 |
24 | /// Creates a parser span over the entire contents of the given raw span.
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:22:7: error: the '_modify' accessor cannot have a ~Escapable 'self'
20 | var _lowerBound: Int
21 | @usableFromInline
22 | var _upperBound: Int
| `- error: the '_modify' accessor cannot have a ~Escapable 'self'
23 |
24 | /// Creates a parser span over the entire contents of the given raw span.
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:29:4: error: unknown attribute '_lifetime'
27 | /// passed as `bytes`.
28 | @inlinable
29 | @_lifetime(copy bytes)
| `- error: unknown attribute '_lifetime'
30 | public init(_ bytes: RawSpan) {
31 | self._bytes = bytes
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:37:4: error: unknown attribute '_lifetime'
35 |
36 | @inlinable
37 | @_lifetime(copy other)
| `- error: unknown attribute '_lifetime'
38 | init(copying other: borrowing ParserSpan) {
39 | self._bytes = other._bytes
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:4: error: unknown attribute '_lifetime'
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: unknown attribute '_lifetime'
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:71:15: error: a method cannot return a ~Escapable result
69 | @inlinable
70 | @_lifetime(copy self)
71 | borrowing get {
| `- error: a method cannot return a ~Escapable result
72 | _bytes._extracting(droppingFirst: _lowerBound)._extracting(first: count)
73 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:70:6: error: unknown attribute '_lifetime'
68 | public var bytes: RawSpan {
69 | @inlinable
70 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
71 | borrowing get {
72 | _bytes._extracting(droppingFirst: _lowerBound)._extracting(first: count)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:42: error: a mutating method cannot return a ~Escapable result
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:17: error: a mutating method cannot have a ~Escapable 'self'
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:104:4: error: unknown attribute '_lifetime'
102 | /// - Precondition: `index` must in the range `startPosition...endPosition`.
103 | @inlinable
104 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
105 | mutating func divide(at index: Int) -> ParserSpan {
106 | precondition(index >= _lowerBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:49: error: a mutating method cannot return a ~Escapable result
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:17: error: a mutating method cannot have a ~Escapable 'self'
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:120:4: error: unknown attribute '_lifetime'
118 | /// - Precondition: `offset` must in the range `0...count`.
119 | @inlinable
120 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
122 | divide(at: startPosition &+ offset)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:155:29: error: a mutating method cannot return a ~Escapable result
153 | internal mutating func _divide(
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
156 | guard let count = Int(exactly: count), count >= 0 else {
157 | throw ParsingError(status: .invalidValue, location: startPosition)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:153:26: error: a mutating method cannot have a ~Escapable 'self'
151 | @_lifetime(copy self)
152 | @usableFromInline
153 | internal mutating func _divide(
| `- error: a mutating method cannot have a ~Escapable 'self'
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:151:4: error: unknown attribute '_lifetime'
149 |
150 | extension ParserSpan {
151 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
152 | @usableFromInline
153 | internal mutating func _divide(
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:169:17: error: a mutating method cannot have a ~Escapable 'self'
167 | @inlinable
168 | @discardableResult
169 | mutating func consume() -> UInt8? {
| `- error: a mutating method cannot have a ~Escapable 'self'
170 | guard !isEmpty else { return nil }
171 | return unsafe consumeUnchecked()
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:177:17: error: a mutating method cannot have a ~Escapable 'self'
175 | @inlinable
176 | @_lifetime(copy self)
177 | mutating func consumeUnchecked(type: UInt8.Type = UInt8.self) -> UInt8 {
| `- error: a mutating method cannot have a ~Escapable 'self'
178 | defer { _lowerBound &+= 1 }
179 | return unsafe _bytes.unsafeLoad(
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:176:4: error: unknown attribute '_lifetime'
174 | @unsafe
175 | @inlinable
176 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
177 | mutating func consumeUnchecked(type: UInt8.Type = UInt8.self) -> UInt8 {
178 | defer { _lowerBound &+= 1 }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:187:17: error: a mutating method cannot have a ~Escapable 'self'
185 | @inlinable
186 | @_lifetime(copy self)
187 | mutating func consumeUnchecked<T: FixedWidthInteger & BitwiseCopyable>(
| `- error: a mutating method cannot have a ~Escapable 'self'
188 | type: T.Type
189 | ) -> T {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:186:4: error: unknown attribute '_lifetime'
184 | @unsafe
185 | @inlinable
186 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
187 | mutating func consumeUnchecked<T: FixedWidthInteger & BitwiseCopyable>(
188 | type: T.Type
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:206:24: error: a mutating method cannot have a ~Escapable 'self'
204 | @inlinable
205 | @_lifetime(&self)
206 | public mutating func atomically<T, E>(
| `- error: a mutating method cannot have a ~Escapable 'self'
207 | _ body: (inout ParserSpan) throws(E) -> T
208 | ) throws(E) -> T {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:205:4: error: unknown attribute '_lifetime'
203 | /// `atomically` guarantees that the input span isn't modified in that case.
204 | @inlinable
205 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
206 | public mutating func atomically<T, E>(
207 | _ body: (inout ParserSpan) throws(E) -> T
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:25:4: error: unknown attribute '_lifetime'
23 | /// - Throws: A `ParsingError` if `range` is out of bounds for this span.
24 | @inlinable
25 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
26 | public func seeking(toRange range: ParserRange)
27 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:63:4: error: unknown attribute '_lifetime'
61 | /// `0...count`.
62 | @inlinable
63 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
64 | public func seeking(toRelativeOffset offset: some FixedWidthInteger)
65 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:105:4: error: unknown attribute '_lifetime'
103 | /// `0...bytes.count`.
104 | @inlinable
105 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
106 | public func seeking(toAbsoluteOffset offset: some FixedWidthInteger)
107 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:145:4: error: unknown attribute '_lifetime'
143 | /// `0...bytes.count`.
144 | @inlinable
145 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
146 | public func seeking(toOffsetFromEnd offset: some FixedWidthInteger)
147 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:168:24: error: a mutating method cannot have a ~Escapable 'self'
166 | @inlinable
167 | @_lifetime(&self)
168 | public mutating func seek(toRange range: ParserRange) throws(ParsingError) {
| `- error: a mutating method cannot have a ~Escapable 'self'
169 | guard (0..._bytes.byteCount).contains(range.lowerBound),
170 | (0..._bytes.byteCount).contains(range.upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:167:4: error: unknown attribute '_lifetime'
165 | /// - Throws: A `ParsingError` if `range` is out of bounds for this span.
166 | @inlinable
167 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
168 | public mutating func seek(toRange range: ParserRange) throws(ParsingError) {
169 | guard (0..._bytes.byteCount).contains(range.lowerBound),
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:208:24: error: a mutating method cannot have a ~Escapable 'self'
206 | @inlinable
207 | @_lifetime(&self)
208 | public mutating func seek(toRelativeOffset offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
209 | throws(ParsingError)
210 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:207:4: error: unknown attribute '_lifetime'
205 | /// `0...count`.
206 | @inlinable
207 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
208 | public mutating func seek(toRelativeOffset offset: some FixedWidthInteger)
209 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:253:24: error: a mutating method cannot have a ~Escapable 'self'
251 | @inlinable
252 | @_lifetime(&self)
253 | public mutating func seek(toAbsoluteOffset offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
254 | throws(ParsingError)
255 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:252:4: error: unknown attribute '_lifetime'
250 | /// `0...bytes.count`.
251 | @inlinable
252 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
253 | public mutating func seek(toAbsoluteOffset offset: some FixedWidthInteger)
254 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:297:24: error: a mutating method cannot have a ~Escapable 'self'
295 | @inlinable
296 | @_lifetime(&self)
297 | public mutating func seek(toOffsetFromEnd offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
298 | throws(ParsingError)
299 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:296:4: error: unknown attribute '_lifetime'
294 | /// `0...count`.
295 | @inlinable
296 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
297 | public mutating func seek(toOffsetFromEnd offset: some FixedWidthInteger)
298 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:32:29: error: a mutating method cannot return a ~Escapable result
30 | @_lifetime(copy self)
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
32 | throws(ParsingError) -> ParserSpan
| `- error: a mutating method cannot return a ~Escapable result
33 | {
34 | guard let byteCount = Int(exactly: byteCount), byteCount >= 0 else {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:31:24: error: a mutating method cannot have a ~Escapable 'self'
29 | @inlinable
30 | @_lifetime(copy self)
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
32 | throws(ParsingError) -> ParserSpan
33 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:30:4: error: unknown attribute '_lifetime'
28 | /// original span.
29 | @inlinable
30 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
32 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:67:29: error: a mutating method cannot return a ~Escapable result
65 | objectStride: some FixedWidthInteger,
66 | objectCount: some FixedWidthInteger
67 | ) throws(ParsingError) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
68 | guard let objectCount = Int(exactly: objectCount),
69 | let objectStride = Int(exactly: objectStride),
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:64:24: error: a mutating method cannot have a ~Escapable 'self'
62 | @inlinable
63 | @_lifetime(copy self)
64 | public mutating func sliceSpan(
| `- error: a mutating method cannot have a ~Escapable 'self'
65 | objectStride: some FixedWidthInteger,
66 | objectCount: some FixedWidthInteger
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:63:4: error: unknown attribute '_lifetime'
61 | /// if the product is not in the range `0...count`.
62 | @inlinable
63 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
64 | public mutating func sliceSpan(
65 | objectStride: some FixedWidthInteger,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:102:24: error: a mutating method cannot have a ~Escapable 'self'
100 | @inlinable
101 | @_lifetime(&self)
102 | public mutating func sliceRange(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
103 | throws(ParsingError) -> ParserRange
104 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:101:4: error: unknown attribute '_lifetime'
99 | /// original span.
100 | @inlinable
101 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
102 | public mutating func sliceRange(byteCount: some FixedWidthInteger)
103 | throws(ParsingError) -> ParserRange
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:133:24: error: a mutating method cannot have a ~Escapable 'self'
131 | @inlinable
132 | @_lifetime(&self)
133 | public mutating func sliceRange(
| `- error: a mutating method cannot have a ~Escapable 'self'
134 | objectStride: some FixedWidthInteger,
135 | objectCount: some FixedWidthInteger
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:132:4: error: unknown attribute '_lifetime'
130 | /// if the product is not in the range `0...count`.
131 | @inlinable
132 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
133 | public mutating func sliceRange(
134 | objectStride: some FixedWidthInteger,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:152:24: error: a mutating method cannot have a ~Escapable 'self'
150 | @inlinable
151 | @_lifetime(&self)
152 | public mutating func sliceRemainingRange() -> ParserRange {
| `- error: a mutating method cannot have a ~Escapable 'self'
153 | divide(atOffset: self.count).parserRange
154 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:151:4: error: unknown attribute '_lifetime'
149 | /// by this parser span.
150 | @inlinable
151 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
152 | public mutating func sliceRemainingRange() -> ParserRange {
153 | divide(atOffset: self.count).parserRange
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:180:29: error: a mutating method cannot return a ~Escapable result
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
180 | throws(ParsingError) -> UTF8Span
| `- error: a mutating method cannot return a ~Escapable result
181 | {
182 | let rawSpan = try sliceSpan(byteCount: byteCount).bytes
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:179:24: error: a mutating method cannot have a ~Escapable 'self'
177 | @_lifetime(copy self)
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
180 | throws(ParsingError) -> UTF8Span
181 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:177:4: error: unknown attribute '_lifetime'
175 | /// span, or if the bytes don't form valid UTF-8.
176 | @inlinable
177 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:20:4: error: unknown attribute '_lifetime'
18 | /// - Parameter input: The `ParserSpan` to consume.
19 | @inlinable
20 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
21 | public init(parsingRemainingBytes input: inout ParserSpan) {
22 | defer { _ = input.divide(atOffset: input.count) }
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:37:4: error: unknown attribute '_lifetime'
35 | /// bytes remaining.
36 | @inlinable
37 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
38 | public init(parsing input: inout ParserSpan, byteCount: Int)
39 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:77:4: error: unknown attribute '_lifetime'
75 | /// representable.
76 | @inlinable
77 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
78 | public init(
79 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:122:4: error: unknown attribute '_lifetime'
120 | /// - Throws: An error if one is thrown from `parser`.
121 | @inlinable
122 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
123 | public init(
124 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:164:4: error: unknown attribute '_lifetime'
162 | /// - Throws: An error if one is thrown from `parser`.
163 | @inlinable
164 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
165 | public init<E>(
166 | parsingAll input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Data.swift:23:4: error: unknown attribute '_lifetime'
21 | /// - Parameter input: The `ParserSpan` to consume.
22 | @inlinable
23 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
24 | public init(parsingRemainingBytes input: inout ParserSpan) {
25 | defer { _ = input.divide(atOffset: input.count) }
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Data.swift:40:4: error: unknown attribute '_lifetime'
38 | /// bytes remaining.
39 | @inlinable
40 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
41 | public init(parsing input: inout ParserSpan, byteCount: Int)
42 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:39:4: error: unknown attribute '_lifetime'
37 | @unsafe
38 | @inlinable
39 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
40 | init(
41 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:48:4: error: unknown attribute '_lifetime'
46 |
47 | @inlinable
48 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
49 | init(
50 | _parsingBigEndian input: inout ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:58:4: error: unknown attribute '_lifetime'
56 | @unsafe
57 | @inlinable
58 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
59 | init(
60 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:67:4: error: unknown attribute '_lifetime'
65 |
66 | @inlinable
67 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
68 | init(_parsingLittleEndian input: inout ParserSpan) throws(ParsingError) {
69 | try input._checkCount(minimum: MemoryLayout<Self>.size)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:75:4: error: unknown attribute '_lifetime'
73 | @unsafe
74 | @inlinable
75 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
76 | init(
77 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:113:4: error: unknown attribute '_lifetime'
111 | @unsafe
112 | @inlinable
113 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
114 | init(
115 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:136:4: error: unknown attribute '_lifetime'
134 | @unsafe
135 | @inlinable
136 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
137 | init(
138 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:198:4: error: unknown attribute '_lifetime'
196 | @unsafe
197 | @inlinable
198 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
199 | init(
200 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:235:4: error: unknown attribute '_lifetime'
233 | @unsafe
234 | @inlinable
235 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
236 | init(
237 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:265:4: error: unknown attribute '_lifetime'
263 |
264 | @inlinable
265 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
266 | init(
267 | _parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:286:4: error: unknown attribute '_lifetime'
284 | @unsafe
285 | @inlinable
286 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
287 | public init(_unchecked _: Void, parsingBigEndian input: inout ParserSpan) {
288 | unsafe self.init(_unchecked: (), _parsingBigEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:300:4: error: unknown attribute '_lifetime'
298 | /// this integer type.
299 | @inlinable
300 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
301 | public init(parsingBigEndian input: inout ParserSpan) throws(ParsingError) {
302 | try self.init(_parsingBigEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:307:4: error: unknown attribute '_lifetime'
305 | @unsafe
306 | @inlinable
307 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
308 | public init(_unchecked _: Void, parsingLittleEndian input: inout ParserSpan) {
309 | unsafe self.init(_unchecked: (), _parsingLittleEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:321:4: error: unknown attribute '_lifetime'
319 | /// this integer type.
320 | @inlinable
321 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
322 | public init(parsingLittleEndian input: inout ParserSpan) throws(ParsingError)
323 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:329:4: error: unknown attribute '_lifetime'
327 | @unsafe
328 | @inlinable
329 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
330 | public init(
331 | _unchecked _: Void, parsing input: inout ParserSpan, endianness: Endianness
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:349:4: error: unknown attribute '_lifetime'
347 | /// this integer type.
348 | @inlinable
349 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
350 | public init(parsing input: inout ParserSpan, endianness: Endianness)
351 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:363:4: error: unknown attribute '_lifetime'
361 | @unsafe
362 | @inlinable
363 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
364 | public init(_unchecked _: Void, parsing input: inout ParserSpan) {
365 | self = unsafe input.consumeUnchecked(type: Self.self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:385:4: error: unknown attribute '_lifetime'
383 |
384 | @unsafe
385 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
386 | @available(
387 | *, deprecated,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:399:4: error: unknown attribute '_lifetime'
397 | @unsafe
398 | @inlinable
399 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
400 | public init(
401 | _unchecked _: Void, parsingBigEndian input: inout ParserSpan, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:423:4: error: unknown attribute '_lifetime'
421 | /// bytes, or if the parsed value overflows this integer type.
422 | @inlinable
423 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
424 | public init(parsingBigEndian input: inout ParserSpan, byteCount: Int)
425 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:432:4: error: unknown attribute '_lifetime'
430 | @unsafe
431 | @inlinable
432 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
433 | public init(
434 | _unchecked _: Void, parsingLittleEndian input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:458:4: error: unknown attribute '_lifetime'
456 | /// bytes, or if the parsed value overflows this integer type.
457 | @inlinable
458 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
459 | public init(parsingLittleEndian input: inout ParserSpan, byteCount: Int)
460 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:467:4: error: unknown attribute '_lifetime'
465 | @unsafe
466 | @inlinable
467 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
468 | public init(
469 | _unchecked _: Void, parsing input: inout ParserSpan, endianness: Endianness,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:495:4: error: unknown attribute '_lifetime'
493 | /// padding bytes are invalid.
494 | @inlinable
495 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
496 | public init(
497 | parsing input: inout ParserSpan, endianness: Endianness, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:505:4: error: unknown attribute '_lifetime'
503 | @unsafe
504 | @inlinable
505 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
506 | public init<T: MultiByteInteger>(
507 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:540:4: error: unknown attribute '_lifetime'
538 | /// overflows.
539 | @inlinable
540 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
541 | public init<T: MultiByteInteger>(
542 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:551:4: error: unknown attribute '_lifetime'
549 | @unsafe
550 | @inlinable
551 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
552 | public init<T: MultiByteInteger>(
553 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:586:4: error: unknown attribute '_lifetime'
584 | /// overflows.
585 | @inlinable
586 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
587 | public init<T: MultiByteInteger>(
588 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:597:4: error: unknown attribute '_lifetime'
595 | @unsafe
596 | @inlinable
597 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
598 | public init<T: MultiByteInteger>(
599 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:637:4: error: unknown attribute '_lifetime'
635 | /// overflows.
636 | @inlinable
637 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
638 | public init<T: MultiByteInteger>(
639 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:652:4: error: unknown attribute '_lifetime'
650 | @unsafe
651 | @inlinable
652 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
653 | public init<T: SingleByteInteger>(
654 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:687:4: error: unknown attribute '_lifetime'
685 | /// overflows.
686 | @inlinable
687 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
688 | public init<T: SingleByteInteger>(
689 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:712:4: error: unknown attribute '_lifetime'
710 | /// or if the maximum byte count for this type's size has been consumed.
711 | @inlinable
712 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
713 | public init(parsingLEB128 input: inout ParserSpan) throws(ParsingError) {
714 | var result: Self = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:783:4: error: unknown attribute '_lifetime'
781 | extension RawRepresentable where RawValue: MultiByteInteger {
782 | @inlinable
783 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
784 | public init(parsingBigEndian input: inout ParserSpan) throws(ParsingError) {
785 | self = try Self(_rawValueThrowing: .init(parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:789:4: error: unknown attribute '_lifetime'
787 |
788 | @inlinable
789 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
790 | public init(parsingLittleEndian input: inout ParserSpan) throws(ParsingError)
791 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:796:4: error: unknown attribute '_lifetime'
794 |
795 | @inlinable
796 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
797 | public init(parsing input: inout ParserSpan, endianness: Endianness)
798 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:808:4: error: unknown attribute '_lifetime'
806 | extension RawRepresentable where RawValue: SingleByteInteger {
807 | @inlinable
808 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
809 | public init(parsing input: inout ParserSpan) throws(ParsingError) {
810 | guard let value = try Self(rawValue: .init(_parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:832:4: error: unknown attribute '_lifetime'
830 |
831 | @inlinable
832 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
833 | public init<T: MultiByteInteger>(
834 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:843:4: error: unknown attribute '_lifetime'
841 |
842 | @inlinable
843 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
844 | public init<T: MultiByteInteger>(
845 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:854:4: error: unknown attribute '_lifetime'
852 |
853 | @inlinable
854 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
855 | public init<T: MultiByteInteger>(
856 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:866:4: error: unknown attribute '_lifetime'
864 |
865 | @inlinable
866 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
867 | public init<T: SingleByteInteger>(
868 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Range.swift:28:4: error: unknown attribute '_lifetime'
26 | /// - parser: The closure to use when parsing the start and count.
27 | /// - Throws: An error if `parser` throws an error.
28 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
29 | public init(
30 | parsingStartAndCount input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Range.swift:56:4: error: unknown attribute '_lifetime'
54 | /// - parser: The closure to use when parsing the start and count.
55 | /// - Throws: An error if `parser` throws an error.
56 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
57 | public init(
58 | parsingStartAndCount input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Range.swift:79:4: error: unknown attribute '_lifetime'
77 | "The behavior of this parser is unintuitive; instead, parse the start and count separately, then form the end of the closed range."
78 | )
79 | @_lifetime(&_input)
| `- error: unknown attribute '_lifetime'
80 | public init(
81 | parsingStartAndCount _input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Range.swift:100:4: error: unknown attribute '_lifetime'
98 | "The behavior of this parser is unintuitive; instead, parse the start and count separately, then form the end of the closed range."
99 | )
100 | @_lifetime(&_input)
| `- error: unknown attribute '_lifetime'
101 | public init(
102 | parsingStartAndCount _input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Range.swift:132:4: error: unknown attribute '_lifetime'
130 | /// - parser: The closure to use when parsing the start and end.
131 | /// - Throws: An error if `parser` throws an error.
132 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
133 | public init(
134 | parsingStartAndEnd input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Range.swift:160:4: error: unknown attribute '_lifetime'
158 | /// - parser: The closure to use when parsing the start and end.
159 | /// - Throws: An error if `parser` throws an error.
160 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
161 | public init(
162 | parsingStartAndEnd input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Range.swift:190:4: error: unknown attribute '_lifetime'
188 | /// - parser: The closure to use when parsing the start and end.
189 | /// - Throws: An error if `parser` throws an error.
190 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
191 | public init(
192 | parsingStartAndEnd input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Range.swift:218:4: error: unknown attribute '_lifetime'
216 | /// - parser: The closure to use when parsing the start and end.
217 | /// - Throws: An error if `parser` throws an error.
218 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
219 | public init(
220 | parsingStartAndEnd input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/String.swift:18:4: error: unknown attribute '_lifetime'
16 | /// initializer throws an error if `input` does not contain a NUL byte.
17 | @inlinable
18 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
19 | public init(parsingNulTerminated input: inout ParserSpan) throws(ParsingError)
20 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/String.swift:38:4: error: unknown attribute '_lifetime'
36 | /// character `U+FFFD`.
37 | @inlinable
38 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
39 | public init(parsingUTF8 input: inout ParserSpan) {
40 | let stringBytes = input.divide(at: input.endPosition)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/String.swift:53:4: error: unknown attribute '_lifetime'
51 | /// replacing with the Unicode replacement character `U+FFFD`.
52 | @inlinable
53 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
54 | public init(parsingUTF8 input: inout ParserSpan, count: Int)
55 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/String.swift:63:4: error: unknown attribute '_lifetime'
61 | @unsafe
62 | @inlinable
63 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
64 | internal init(_uncheckedParsingUTF16 input: inout ParserSpan)
65 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/String.swift:81:4: error: unknown attribute '_lifetime'
79 | /// Unicode replacement character `U+FFFD`.
80 | @inlinable
81 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
82 | public init(parsingUTF16 input: inout ParserSpan) throws(ParsingError) {
83 | guard input.count.isMultiple(of: 2) else {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/String.swift:104:4: error: unknown attribute '_lifetime'
102 | /// `2 * codeUnitCount` bytes remaining.
103 | @inlinable
104 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
105 | public init(parsingUTF16 input: inout ParserSpan, codeUnitCount: Int)
106 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Macros/MagicNumber.swift:12:2: error: unknown attribute '_lifetime'
10 | //===----------------------------------------------------------------------===//
11 |
12 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
13 | public func _loadAndCheckDirectBytes<
14 | T: FixedWidthInteger & MultiByteInteger & BitwiseCopyable
/host/spi-builder-workspace/Sources/BinaryParsing/Macros/MagicNumber.swift:26:2: error: unknown attribute '_lifetime'
24 | }
25 |
26 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
27 | public func _loadAndCheckDirectBytesByteOrder<
28 | T: FixedWidthInteger & MultiByteInteger & BitwiseCopyable
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:21: error: expected ',' separator
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: expected ',' separator
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSource.swift:33:4: error: unknown attribute '_lifetime'
31 | /// let qoiImage = try QOI(parsing: imageData)
32 | public protocol ExpressibleByParsing {
33 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
34 | init(parsing input: inout ParserSpan) throws(ThrownParsingError)
35 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:30:10: error: an initializer cannot return a ~Escapable result
28 | @inlinable
29 | @_lifetime(copy bytes)
30 | public init(_ bytes: RawSpan) {
| `- error: an initializer cannot return a ~Escapable result
31 | self._bytes = bytes
32 | self._lowerBound = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:38:3: error: an initializer cannot return a ~Escapable result
36 | @inlinable
37 | @_lifetime(copy other)
38 | init(copying other: borrowing ParserSpan) {
| `- error: an initializer cannot return a ~Escapable result
39 | self._bytes = other._bytes
40 | self._lowerBound = other._lowerBound
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:47:10: error: an initializer cannot return a ~Escapable result
45 | @inlinable
46 | @_lifetime(borrow buffer)
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
| `- error: an initializer cannot return a ~Escapable result
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
49 | self._lowerBound = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:27:29: error: a method cannot return a ~Escapable result
25 | @_lifetime(copy self)
26 | public func seeking(toRange range: ParserRange)
27 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
28 | {
29 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:65:29: error: a method cannot return a ~Escapable result
63 | @_lifetime(copy self)
64 | public func seeking(toRelativeOffset offset: some FixedWidthInteger)
65 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
66 | {
67 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:107:29: error: a method cannot return a ~Escapable result
105 | @_lifetime(copy self)
106 | public func seeking(toAbsoluteOffset offset: some FixedWidthInteger)
107 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
108 | {
109 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:147:29: error: a method cannot return a ~Escapable result
145 | @_lifetime(copy self)
146 | public func seeking(toOffsetFromEnd offset: some FixedWidthInteger)
147 | throws(ParsingError) -> ParserSpan
| `- error: a method cannot return a ~Escapable result
148 | {
149 | var result = ParserSpan(copying: self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:18:7: error: the 'get' accessor cannot return a ~Escapable result
16 | public struct ParserSpan: ~Escapable, ~Copyable {
17 | @usableFromInline
18 | var _bytes: RawSpan
| `- error: the 'get' accessor cannot return a ~Escapable result
19 | @usableFromInline
20 | var _lowerBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:18:7: error: the 'set' accessor cannot have a ~Escapable 'self'
16 | public struct ParserSpan: ~Escapable, ~Copyable {
17 | @usableFromInline
18 | var _bytes: RawSpan
| `- error: the 'set' accessor cannot have a ~Escapable 'self'
19 | @usableFromInline
20 | var _lowerBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:18:7: error: the '_modify' accessor cannot return a ~Escapable result
16 | public struct ParserSpan: ~Escapable, ~Copyable {
17 | @usableFromInline
18 | var _bytes: RawSpan
| `- error: the '_modify' accessor cannot return a ~Escapable result
19 | @usableFromInline
20 | var _lowerBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:18:7: error: the '_modify' accessor cannot have a ~Escapable 'self'
16 | public struct ParserSpan: ~Escapable, ~Copyable {
17 | @usableFromInline
18 | var _bytes: RawSpan
| `- error: the '_modify' accessor cannot have a ~Escapable 'self'
19 | @usableFromInline
20 | var _lowerBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:20:7: error: the 'set' accessor cannot have a ~Escapable 'self'
18 | var _bytes: RawSpan
19 | @usableFromInline
20 | var _lowerBound: Int
| `- error: the 'set' accessor cannot have a ~Escapable 'self'
21 | @usableFromInline
22 | var _upperBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:20:7: error: the '_modify' accessor cannot have a ~Escapable 'self'
18 | var _bytes: RawSpan
19 | @usableFromInline
20 | var _lowerBound: Int
| `- error: the '_modify' accessor cannot have a ~Escapable 'self'
21 | @usableFromInline
22 | var _upperBound: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:22:7: error: the 'set' accessor cannot have a ~Escapable 'self'
20 | var _lowerBound: Int
21 | @usableFromInline
22 | var _upperBound: Int
| `- error: the 'set' accessor cannot have a ~Escapable 'self'
23 |
24 | /// Creates a parser span over the entire contents of the given raw span.
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:22:7: error: the '_modify' accessor cannot have a ~Escapable 'self'
20 | var _lowerBound: Int
21 | @usableFromInline
22 | var _upperBound: Int
| `- error: the '_modify' accessor cannot have a ~Escapable 'self'
23 |
24 | /// Creates a parser span over the entire contents of the given raw span.
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:29:4: error: unknown attribute '_lifetime'
27 | /// passed as `bytes`.
28 | @inlinable
29 | @_lifetime(copy bytes)
| `- error: unknown attribute '_lifetime'
30 | public init(_ bytes: RawSpan) {
31 | self._bytes = bytes
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:37:4: error: unknown attribute '_lifetime'
35 |
36 | @inlinable
37 | @_lifetime(copy other)
| `- error: unknown attribute '_lifetime'
38 | init(copying other: borrowing ParserSpan) {
39 | self._bytes = other._bytes
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:46:4: error: unknown attribute '_lifetime'
44 | @unsafe
45 | @inlinable
46 | @_lifetime(borrow buffer)
| `- error: unknown attribute '_lifetime'
47 | public init(_unsafeBytes buffer: UnsafeRawBufferPointer) {
48 | self._bytes = unsafe RawSpan(_unsafeBytes: buffer)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:71:15: error: a method cannot return a ~Escapable result
69 | @inlinable
70 | @_lifetime(copy self)
71 | borrowing get {
| `- error: a method cannot return a ~Escapable result
72 | _bytes._extracting(droppingFirst: _lowerBound)._extracting(first: count)
73 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:70:6: error: unknown attribute '_lifetime'
68 | public var bytes: RawSpan {
69 | @inlinable
70 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
71 | borrowing get {
72 | _bytes._extracting(droppingFirst: _lowerBound)._extracting(first: count)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:42: error: a mutating method cannot return a ~Escapable result
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:105:17: error: a mutating method cannot have a ~Escapable 'self'
103 | @inlinable
104 | @_lifetime(copy self)
105 | mutating func divide(at index: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
106 | precondition(index >= _lowerBound)
107 | precondition(index <= _upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:104:4: error: unknown attribute '_lifetime'
102 | /// - Precondition: `index` must in the range `startPosition...endPosition`.
103 | @inlinable
104 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
105 | mutating func divide(at index: Int) -> ParserSpan {
106 | precondition(index >= _lowerBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:49: error: a mutating method cannot return a ~Escapable result
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:121:17: error: a mutating method cannot have a ~Escapable 'self'
119 | @inlinable
120 | @_lifetime(copy self)
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
| `- error: a mutating method cannot have a ~Escapable 'self'
122 | divide(at: startPosition &+ offset)
123 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:120:4: error: unknown attribute '_lifetime'
118 | /// - Precondition: `offset` must in the range `0...count`.
119 | @inlinable
120 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
121 | mutating func divide(atOffset offset: Int) -> ParserSpan {
122 | divide(at: startPosition &+ offset)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:155:29: error: a mutating method cannot return a ~Escapable result
153 | internal mutating func _divide(
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
156 | guard let count = Int(exactly: count), count >= 0 else {
157 | throw ParsingError(status: .invalidValue, location: startPosition)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:153:26: error: a mutating method cannot have a ~Escapable 'self'
151 | @_lifetime(copy self)
152 | @usableFromInline
153 | internal mutating func _divide(
| `- error: a mutating method cannot have a ~Escapable 'self'
154 | atByteOffset count: some FixedWidthInteger
155 | ) throws(ParsingError) -> ParserSpan {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:151:4: error: unknown attribute '_lifetime'
149 |
150 | extension ParserSpan {
151 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
152 | @usableFromInline
153 | internal mutating func _divide(
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:169:17: error: a mutating method cannot have a ~Escapable 'self'
167 | @inlinable
168 | @discardableResult
169 | mutating func consume() -> UInt8? {
| `- error: a mutating method cannot have a ~Escapable 'self'
170 | guard !isEmpty else { return nil }
171 | return unsafe consumeUnchecked()
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:177:17: error: a mutating method cannot have a ~Escapable 'self'
175 | @inlinable
176 | @_lifetime(copy self)
177 | mutating func consumeUnchecked(type: UInt8.Type = UInt8.self) -> UInt8 {
| `- error: a mutating method cannot have a ~Escapable 'self'
178 | defer { _lowerBound &+= 1 }
179 | return unsafe _bytes.unsafeLoad(
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:176:4: error: unknown attribute '_lifetime'
174 | @unsafe
175 | @inlinable
176 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
177 | mutating func consumeUnchecked(type: UInt8.Type = UInt8.self) -> UInt8 {
178 | defer { _lowerBound &+= 1 }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:187:17: error: a mutating method cannot have a ~Escapable 'self'
185 | @inlinable
186 | @_lifetime(copy self)
187 | mutating func consumeUnchecked<T: FixedWidthInteger & BitwiseCopyable>(
| `- error: a mutating method cannot have a ~Escapable 'self'
188 | type: T.Type
189 | ) -> T {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:186:4: error: unknown attribute '_lifetime'
184 | @unsafe
185 | @inlinable
186 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
187 | mutating func consumeUnchecked<T: FixedWidthInteger & BitwiseCopyable>(
188 | type: T.Type
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:206:24: error: a mutating method cannot have a ~Escapable 'self'
204 | @inlinable
205 | @_lifetime(&self)
206 | public mutating func atomically<T, E>(
| `- error: a mutating method cannot have a ~Escapable 'self'
207 | _ body: (inout ParserSpan) throws(E) -> T
208 | ) throws(E) -> T {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/ParserSpan.swift:205:4: error: unknown attribute '_lifetime'
203 | /// `atomically` guarantees that the input span isn't modified in that case.
204 | @inlinable
205 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
206 | public mutating func atomically<T, E>(
207 | _ body: (inout ParserSpan) throws(E) -> T
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:25:4: error: unknown attribute '_lifetime'
23 | /// - Throws: A `ParsingError` if `range` is out of bounds for this span.
24 | @inlinable
25 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
26 | public func seeking(toRange range: ParserRange)
27 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:63:4: error: unknown attribute '_lifetime'
61 | /// `0...count`.
62 | @inlinable
63 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
64 | public func seeking(toRelativeOffset offset: some FixedWidthInteger)
65 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:105:4: error: unknown attribute '_lifetime'
103 | /// `0...bytes.count`.
104 | @inlinable
105 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
106 | public func seeking(toAbsoluteOffset offset: some FixedWidthInteger)
107 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:145:4: error: unknown attribute '_lifetime'
143 | /// `0...bytes.count`.
144 | @inlinable
145 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
146 | public func seeking(toOffsetFromEnd offset: some FixedWidthInteger)
147 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:168:24: error: a mutating method cannot have a ~Escapable 'self'
166 | @inlinable
167 | @_lifetime(&self)
168 | public mutating func seek(toRange range: ParserRange) throws(ParsingError) {
| `- error: a mutating method cannot have a ~Escapable 'self'
169 | guard (0..._bytes.byteCount).contains(range.lowerBound),
170 | (0..._bytes.byteCount).contains(range.upperBound)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:167:4: error: unknown attribute '_lifetime'
165 | /// - Throws: A `ParsingError` if `range` is out of bounds for this span.
166 | @inlinable
167 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
168 | public mutating func seek(toRange range: ParserRange) throws(ParsingError) {
169 | guard (0..._bytes.byteCount).contains(range.lowerBound),
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:208:24: error: a mutating method cannot have a ~Escapable 'self'
206 | @inlinable
207 | @_lifetime(&self)
208 | public mutating func seek(toRelativeOffset offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
209 | throws(ParsingError)
210 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:207:4: error: unknown attribute '_lifetime'
205 | /// `0...count`.
206 | @inlinable
207 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
208 | public mutating func seek(toRelativeOffset offset: some FixedWidthInteger)
209 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:253:24: error: a mutating method cannot have a ~Escapable 'self'
251 | @inlinable
252 | @_lifetime(&self)
253 | public mutating func seek(toAbsoluteOffset offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
254 | throws(ParsingError)
255 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:252:4: error: unknown attribute '_lifetime'
250 | /// `0...bytes.count`.
251 | @inlinable
252 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
253 | public mutating func seek(toAbsoluteOffset offset: some FixedWidthInteger)
254 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:297:24: error: a mutating method cannot have a ~Escapable 'self'
295 | @inlinable
296 | @_lifetime(&self)
297 | public mutating func seek(toOffsetFromEnd offset: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
298 | throws(ParsingError)
299 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Seeking.swift:296:4: error: unknown attribute '_lifetime'
294 | /// `0...count`.
295 | @inlinable
296 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
297 | public mutating func seek(toOffsetFromEnd offset: some FixedWidthInteger)
298 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:32:29: error: a mutating method cannot return a ~Escapable result
30 | @_lifetime(copy self)
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
32 | throws(ParsingError) -> ParserSpan
| `- error: a mutating method cannot return a ~Escapable result
33 | {
34 | guard let byteCount = Int(exactly: byteCount), byteCount >= 0 else {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:31:24: error: a mutating method cannot have a ~Escapable 'self'
29 | @inlinable
30 | @_lifetime(copy self)
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
32 | throws(ParsingError) -> ParserSpan
33 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:30:4: error: unknown attribute '_lifetime'
28 | /// original span.
29 | @inlinable
30 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
31 | public mutating func sliceSpan(byteCount: some FixedWidthInteger)
32 | throws(ParsingError) -> ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:67:29: error: a mutating method cannot return a ~Escapable result
65 | objectStride: some FixedWidthInteger,
66 | objectCount: some FixedWidthInteger
67 | ) throws(ParsingError) -> ParserSpan {
| `- error: a mutating method cannot return a ~Escapable result
68 | guard let objectCount = Int(exactly: objectCount),
69 | let objectStride = Int(exactly: objectStride),
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:64:24: error: a mutating method cannot have a ~Escapable 'self'
62 | @inlinable
63 | @_lifetime(copy self)
64 | public mutating func sliceSpan(
| `- error: a mutating method cannot have a ~Escapable 'self'
65 | objectStride: some FixedWidthInteger,
66 | objectCount: some FixedWidthInteger
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:63:4: error: unknown attribute '_lifetime'
61 | /// if the product is not in the range `0...count`.
62 | @inlinable
63 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
64 | public mutating func sliceSpan(
65 | objectStride: some FixedWidthInteger,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:102:24: error: a mutating method cannot have a ~Escapable 'self'
100 | @inlinable
101 | @_lifetime(&self)
102 | public mutating func sliceRange(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
103 | throws(ParsingError) -> ParserRange
104 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:101:4: error: unknown attribute '_lifetime'
99 | /// original span.
100 | @inlinable
101 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
102 | public mutating func sliceRange(byteCount: some FixedWidthInteger)
103 | throws(ParsingError) -> ParserRange
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:133:24: error: a mutating method cannot have a ~Escapable 'self'
131 | @inlinable
132 | @_lifetime(&self)
133 | public mutating func sliceRange(
| `- error: a mutating method cannot have a ~Escapable 'self'
134 | objectStride: some FixedWidthInteger,
135 | objectCount: some FixedWidthInteger
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:132:4: error: unknown attribute '_lifetime'
130 | /// if the product is not in the range `0...count`.
131 | @inlinable
132 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
133 | public mutating func sliceRange(
134 | objectStride: some FixedWidthInteger,
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:152:24: error: a mutating method cannot have a ~Escapable 'self'
150 | @inlinable
151 | @_lifetime(&self)
152 | public mutating func sliceRemainingRange() -> ParserRange {
| `- error: a mutating method cannot have a ~Escapable 'self'
153 | divide(atOffset: self.count).parserRange
154 | }
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:151:4: error: unknown attribute '_lifetime'
149 | /// by this parser span.
150 | @inlinable
151 | @_lifetime(&self)
| `- error: unknown attribute '_lifetime'
152 | public mutating func sliceRemainingRange() -> ParserRange {
153 | divide(atOffset: self.count).parserRange
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:180:29: error: a mutating method cannot return a ~Escapable result
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
180 | throws(ParsingError) -> UTF8Span
| `- error: a mutating method cannot return a ~Escapable result
181 | {
182 | let rawSpan = try sliceSpan(byteCount: byteCount).bytes
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:179:24: error: a mutating method cannot have a ~Escapable 'self'
177 | @_lifetime(copy self)
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
| `- error: a mutating method cannot have a ~Escapable 'self'
180 | throws(ParsingError) -> UTF8Span
181 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parser Types/Slicing.swift:177:4: error: unknown attribute '_lifetime'
175 | /// span, or if the bytes don't form valid UTF-8.
176 | @inlinable
177 | @_lifetime(copy self)
| `- error: unknown attribute '_lifetime'
178 | @available(macOS 26.0, iOS 26.0, watchOS 26.0, tvOS 26.0, *)
179 | public mutating func sliceUTF8Span(byteCount: some FixedWidthInteger)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:20:4: error: unknown attribute '_lifetime'
18 | /// - Parameter input: The `ParserSpan` to consume.
19 | @inlinable
20 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
21 | public init(parsingRemainingBytes input: inout ParserSpan) {
22 | defer { _ = input.divide(atOffset: input.count) }
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:37:4: error: unknown attribute '_lifetime'
35 | /// bytes remaining.
36 | @inlinable
37 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
38 | public init(parsing input: inout ParserSpan, byteCount: Int)
39 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:77:4: error: unknown attribute '_lifetime'
75 | /// representable.
76 | @inlinable
77 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
78 | public init(
79 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:122:4: error: unknown attribute '_lifetime'
120 | /// - Throws: An error if one is thrown from `parser`.
121 | @inlinable
122 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
123 | public init(
124 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Array.swift:164:4: error: unknown attribute '_lifetime'
162 | /// - Throws: An error if one is thrown from `parser`.
163 | @inlinable
164 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
165 | public init<E>(
166 | parsingAll input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Data.swift:23:4: error: unknown attribute '_lifetime'
21 | /// - Parameter input: The `ParserSpan` to consume.
22 | @inlinable
23 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
24 | public init(parsingRemainingBytes input: inout ParserSpan) {
25 | defer { _ = input.divide(atOffset: input.count) }
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Data.swift:40:4: error: unknown attribute '_lifetime'
38 | /// bytes remaining.
39 | @inlinable
40 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
41 | public init(parsing input: inout ParserSpan, byteCount: Int)
42 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:39:4: error: unknown attribute '_lifetime'
37 | @unsafe
38 | @inlinable
39 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
40 | init(
41 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:48:4: error: unknown attribute '_lifetime'
46 |
47 | @inlinable
48 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
49 | init(
50 | _parsingBigEndian input: inout ParserSpan
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:58:4: error: unknown attribute '_lifetime'
56 | @unsafe
57 | @inlinable
58 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
59 | init(
60 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:67:4: error: unknown attribute '_lifetime'
65 |
66 | @inlinable
67 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
68 | init(_parsingLittleEndian input: inout ParserSpan) throws(ParsingError) {
69 | try input._checkCount(minimum: MemoryLayout<Self>.size)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:75:4: error: unknown attribute '_lifetime'
73 | @unsafe
74 | @inlinable
75 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
76 | init(
77 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:113:4: error: unknown attribute '_lifetime'
111 | @unsafe
112 | @inlinable
113 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
114 | init(
115 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:136:4: error: unknown attribute '_lifetime'
134 | @unsafe
135 | @inlinable
136 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
137 | init(
138 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:198:4: error: unknown attribute '_lifetime'
196 | @unsafe
197 | @inlinable
198 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
199 | init(
200 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:235:4: error: unknown attribute '_lifetime'
233 | @unsafe
234 | @inlinable
235 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
236 | init(
237 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:265:4: error: unknown attribute '_lifetime'
263 |
264 | @inlinable
265 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
266 | init(
267 | _parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:286:4: error: unknown attribute '_lifetime'
284 | @unsafe
285 | @inlinable
286 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
287 | public init(_unchecked _: Void, parsingBigEndian input: inout ParserSpan) {
288 | unsafe self.init(_unchecked: (), _parsingBigEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:300:4: error: unknown attribute '_lifetime'
298 | /// this integer type.
299 | @inlinable
300 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
301 | public init(parsingBigEndian input: inout ParserSpan) throws(ParsingError) {
302 | try self.init(_parsingBigEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:307:4: error: unknown attribute '_lifetime'
305 | @unsafe
306 | @inlinable
307 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
308 | public init(_unchecked _: Void, parsingLittleEndian input: inout ParserSpan) {
309 | unsafe self.init(_unchecked: (), _parsingLittleEndian: &input)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:321:4: error: unknown attribute '_lifetime'
319 | /// this integer type.
320 | @inlinable
321 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
322 | public init(parsingLittleEndian input: inout ParserSpan) throws(ParsingError)
323 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:329:4: error: unknown attribute '_lifetime'
327 | @unsafe
328 | @inlinable
329 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
330 | public init(
331 | _unchecked _: Void, parsing input: inout ParserSpan, endianness: Endianness
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:349:4: error: unknown attribute '_lifetime'
347 | /// this integer type.
348 | @inlinable
349 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
350 | public init(parsing input: inout ParserSpan, endianness: Endianness)
351 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:363:4: error: unknown attribute '_lifetime'
361 | @unsafe
362 | @inlinable
363 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
364 | public init(_unchecked _: Void, parsing input: inout ParserSpan) {
365 | self = unsafe input.consumeUnchecked(type: Self.self)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:385:4: error: unknown attribute '_lifetime'
383 |
384 | @unsafe
385 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
386 | @available(
387 | *, deprecated,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:399:4: error: unknown attribute '_lifetime'
397 | @unsafe
398 | @inlinable
399 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
400 | public init(
401 | _unchecked _: Void, parsingBigEndian input: inout ParserSpan, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:423:4: error: unknown attribute '_lifetime'
421 | /// bytes, or if the parsed value overflows this integer type.
422 | @inlinable
423 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
424 | public init(parsingBigEndian input: inout ParserSpan, byteCount: Int)
425 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:432:4: error: unknown attribute '_lifetime'
430 | @unsafe
431 | @inlinable
432 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
433 | public init(
434 | _unchecked _: Void, parsingLittleEndian input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:458:4: error: unknown attribute '_lifetime'
456 | /// bytes, or if the parsed value overflows this integer type.
457 | @inlinable
458 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
459 | public init(parsingLittleEndian input: inout ParserSpan, byteCount: Int)
460 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:467:4: error: unknown attribute '_lifetime'
465 | @unsafe
466 | @inlinable
467 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
468 | public init(
469 | _unchecked _: Void, parsing input: inout ParserSpan, endianness: Endianness,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:495:4: error: unknown attribute '_lifetime'
493 | /// padding bytes are invalid.
494 | @inlinable
495 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
496 | public init(
497 | parsing input: inout ParserSpan, endianness: Endianness, byteCount: Int
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:505:4: error: unknown attribute '_lifetime'
503 | @unsafe
504 | @inlinable
505 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
506 | public init<T: MultiByteInteger>(
507 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:540:4: error: unknown attribute '_lifetime'
538 | /// overflows.
539 | @inlinable
540 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
541 | public init<T: MultiByteInteger>(
542 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:551:4: error: unknown attribute '_lifetime'
549 | @unsafe
550 | @inlinable
551 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
552 | public init<T: MultiByteInteger>(
553 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:586:4: error: unknown attribute '_lifetime'
584 | /// overflows.
585 | @inlinable
586 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
587 | public init<T: MultiByteInteger>(
588 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:597:4: error: unknown attribute '_lifetime'
595 | @unsafe
596 | @inlinable
597 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
598 | public init<T: MultiByteInteger>(
599 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:637:4: error: unknown attribute '_lifetime'
635 | /// overflows.
636 | @inlinable
637 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
638 | public init<T: MultiByteInteger>(
639 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:652:4: error: unknown attribute '_lifetime'
650 | @unsafe
651 | @inlinable
652 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
653 | public init<T: SingleByteInteger>(
654 | _unchecked _: Void,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:687:4: error: unknown attribute '_lifetime'
685 | /// overflows.
686 | @inlinable
687 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
688 | public init<T: SingleByteInteger>(
689 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:712:4: error: unknown attribute '_lifetime'
710 | /// or if the maximum byte count for this type's size has been consumed.
711 | @inlinable
712 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
713 | public init(parsingLEB128 input: inout ParserSpan) throws(ParsingError) {
714 | var result: Self = 0
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:783:4: error: unknown attribute '_lifetime'
781 | extension RawRepresentable where RawValue: MultiByteInteger {
782 | @inlinable
783 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
784 | public init(parsingBigEndian input: inout ParserSpan) throws(ParsingError) {
785 | self = try Self(_rawValueThrowing: .init(parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:789:4: error: unknown attribute '_lifetime'
787 |
788 | @inlinable
789 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
790 | public init(parsingLittleEndian input: inout ParserSpan) throws(ParsingError)
791 | {
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:796:4: error: unknown attribute '_lifetime'
794 |
795 | @inlinable
796 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
797 | public init(parsing input: inout ParserSpan, endianness: Endianness)
798 | throws(ParsingError)
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:808:4: error: unknown attribute '_lifetime'
806 | extension RawRepresentable where RawValue: SingleByteInteger {
807 | @inlinable
808 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
809 | public init(parsing input: inout ParserSpan) throws(ParsingError) {
810 | guard let value = try Self(rawValue: .init(_parsingBigEndian: &input))
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:832:4: error: unknown attribute '_lifetime'
830 |
831 | @inlinable
832 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
833 | public init<T: MultiByteInteger>(
834 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:843:4: error: unknown attribute '_lifetime'
841 |
842 | @inlinable
843 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
844 | public init<T: MultiByteInteger>(
845 | parsing input: inout ParserSpan,
/host/spi-builder-workspace/Sources/BinaryParsing/Parsers/Integer.swift:854:4: error: unknown attribute '_lifetime'
852 |
853 | @inlinable
854 | @_lifetime(&input)
| `- error: unknown attribute '_lifetime'
855 | public init<T: MultiByteInteger>(
856 | parsing input: inout ParserSpan,
BUILD FAILURE 6.2 linux