Build Information
Failed to build swift-demangling, reference main (68d749), with Swift 6.2 for macOS (SPM) on 9 Nov 2026 17:52:58 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64Build Log
4103 | }
4104 |
4105 | mutating func demangleSwift3ImplParameterOrResult(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4106 | var k: Node.Kind
4107 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4123:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4121 | }
4122 |
4123 | mutating func demangleSwift3Tuple(variadic: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4124 | var children = [Node]()
4125 | while !scanner.conditional(scalar: "_") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4140:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4138 | }
4139 |
4140 | mutating func demangleSwift3FunctionType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4141 | var children = [Node]()
4142 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4150:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4148 | }
4149 |
4150 | mutating func demangleSwift3Identifier(kind: Node.Kind? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4151 | let isPunycode = scanner.conditional(scalar: "X")
4152 | let k: Node.Kind
[766/816] Compiling Demangling DemanglingLogging.swift
[767/816] Compiling Demangling Extensions.swift
[768/816] Compiling Demangling LargeStackTaskExecutor.swift
[769/816] Compiling Demangling Punycode.swift
[770/816] Compiling Demangling StackSafeExecutor.swift
[771/816] Compiling Demangling NodeStoreBuilder.swift
[772/816] Compiling Demangling SharedNodeStore.swift
[773/816] Compiling Demangling StoreBuffer.swift
[774/816] Compiling Demangling UnretainedNodeReference.swift
[775/816] Compiling Demangling Common.swift
[776/816] Compiling Demangling Directness.swift
[777/816] Compiling Demangling FunctionSigSpecializationParamKind.swift
[778/816] Compiling Demangling ManglingError.swift
[779/816] Compiling Demangling ManglingFlavor.swift
[780/816] Compiling Demangling SpecializationPass.swift
[781/816] Compiling Demangling SugarType.swift
[782/816] Compiling Demangling DemanglingNode+Sequence.swift
[783/816] Compiling Demangling DemanglingNode.swift
[784/816] Compiling Demangling NodeReference.swift
[785/816] Compiling Demangling NodeStore+BufferView.swift
[786/816] Compiling Demangling NodeStore.swift
[787/816] Compiling Demangling Demangler+NodeCreation.swift
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:60:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
58 |
59 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with one child.
60 | mutating func createNode(typeWithChildKind: Node.Kind, childChild: Node) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
61 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: [childChild])])
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:65:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
63 |
64 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with children.
65 | mutating func createNode(typeWithChildKind: Node.Kind, childChildren: [Node]) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
66 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: childChildren)])
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:70:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
68 |
69 | /// Compound: Swift stdlib type (`.type` > `kind` > [`.module("Swift")`, `.identifier(name)`]).
70 | mutating func createNode(swiftStdlibTypeKind: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
71 | createNode(kind: .type, children: [createNode(kind: swiftStdlibTypeKind, children: [
72 | createNode(kind: .module, text: stdlibName),
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:78:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
76 |
77 | /// Compound: Swift builtin type (`.type` > `kind(name)`).
78 | mutating func createNode(swiftBuiltinType: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
79 | createNode(kind: .type, children: [createNode(kind: swiftBuiltinType, text: name)])
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:46:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
44 | // `demangler-self-copy`.) The one visible difference: a failure reports
45 | // the scanner position after the argument was evaluated, not before.
46 | private mutating func require<Wrapped>(_ optional: Wrapped?) throws(DemanglingError) -> Wrapped {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
47 | if let optional {
48 | return optional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:54:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
52 | }
53 |
54 | private mutating func require(_ value: Bool) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
55 | if !value {
56 | throw failure
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:155:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
153 | }
154 |
155 | private mutating func demangleSymbolicReference(rawValue: UInt8) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
156 | guard let (kind, directness) = SymbolicReference.symbolicReference(for: rawValue) else {
157 | throw DemanglingError.requiredNonOptional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:362:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
360 | }
361 |
362 | private mutating func pushMultiSubstitutions(repeatCount: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
363 | try require(repeatCount <= maxRepeatCount)
364 | let nd = try require(substitutions.at(index))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:378:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
376 | }
377 |
378 | private mutating func pop(kind: Node.Kind) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
379 | return nameStack.last?.kind == kind ? pop() : nil
380 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:382:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
380 | }
381 |
382 | private mutating func pop(where cond: (Node.Kind) -> Bool) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
383 | return nameStack.last.map { cond($0.kind) } == true ? pop() : nil
384 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:386:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
384 | }
385 |
386 | private mutating func popFunctionType(kind: Node.Kind, hasClangType: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
387 | var children: [Node] = []
388 | if hasClangType {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:415:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
413 | }
414 |
415 | private mutating func popFunctionParams(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
416 | let paramsType: Node
417 | if pop(kind: .emptyList) != nil {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:425:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
423 | }
424 |
425 | private mutating func getLabel(params: Node, idx: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
426 | if isOldFunctionTypeMangling {
427 | let param = try require(params.children.at(idx))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:436:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
434 | }
435 |
436 | private mutating func popFunctionParamLabels(type: Node) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
437 | if !isOldFunctionTypeMangling && pop(kind: .emptyList) != nil {
438 | return NodeFactory.labelList
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:533:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
531 | }
532 |
533 | private mutating func popPack(kind: Node.Kind = .pack) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
534 | if pop(kind: .emptyList) != nil {
535 | return createNode(kind: .type, child: NodeFactory.pack)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:774:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
772 | }
773 |
774 | private mutating func getDependentGenericParamType(depth: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
775 | try require(depth >= 0 && index >= 0)
776 | var charIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1084:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1082 | }
1083 |
1084 | private mutating func demangleAnyGenericType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1085 | let name = try require(pop(where: { $0.isDeclName }))
1086 | let ctx = try popContext()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1256:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1254 | }
1255 |
1256 | private mutating func demangleBoundGenericArgs(nominal: Node, array: [Node], index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1257 | if nominal.kind == .typeSymbolicReference || nominal.kind == .protocolSymbolicReference {
1258 | let remaining = array.reversed().flatMap { $0.children }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1324:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1322 | }
1323 |
1324 | private mutating func demangleImplParamConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1325 | let attr: String
1326 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1347:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1345 | }
1346 |
1347 | private mutating func demangleImplResultConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1348 | let attr: String
1349 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1681:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1679 | }
1680 |
1681 | private mutating func demangleAssociatedTypeSimple(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1682 | do {
1683 | let atName = try popAssociatedTypeName()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1691:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1689 | }
1690 |
1691 | private mutating func demangleAssociatedTypeCompound(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1692 | do {
1693 | var assocTypeNames = [Node]()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1928:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1926 | }
1927 |
1928 | private mutating func demangleAutoDiffFunctionOrSimpleThunk(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1929 | var children: [Node] = []
1930 | while let node = pop() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2046:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2044 | }
2045 |
2046 | private mutating func demangleGenericSpecialization(kind: Node.Kind, droppedArguments: Node? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2047 | var spec = try demangleSpecAttributes(kind: kind)
2048 | if let droppedArguments {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2136:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2134 | }
2135 |
2136 | private mutating func demangleFuncSpecParam(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2137 | var children: [Node] = []
2138 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2241:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2239 | }
2240 |
2241 | private mutating func addFuncSpecParamNumber(param: Node, kind: FunctionSigSpecializationParamKind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2242 | let kindChild = createNode(kind: .functionSignatureSpecializationParamKind, contents: .index(kind.rawValue))
2243 | let str = scanner.readWhile { $0.isDigit }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2263:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2261 | }
2262 |
2263 | private mutating func demangleSpecAttributes(kind: Node.Kind, demangleUniqueId: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2264 | let isSerialized = scanner.conditional(scalar: "q")
2265 | let asyncRemoved = scanner.conditional(scalar: "a")
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2535:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2533 | }
2534 |
2535 | private mutating func demangleExtendedExistentialShape(nodeKind: UnicodeScalar) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2536 | let type = try require(pop(kind: .type))
2537 | var genSig: Node?
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2559:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2557 | }
2558 |
2559 | private mutating func demangleAccessor(child: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2560 | let kind: Node.Kind
2561 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2645:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2643 | }
2644 |
2645 | private mutating func demangleEntity(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2646 | let type = try require(pop(kind: .type))
2647 | let labelList = try popFunctionParamLabels(type: type)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2718:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2716 | }
2717 |
2718 | private mutating func demangleGenericSignature(hasParamCounts: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2719 | var paramCounts: [Node] = []
2720 | if hasParamCounts {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3030:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3028 | /// Throw unless `test` accepts the scalar at the current position; on
3029 | /// success return it and advance.
3030 | mutating func read(where test: (UnicodeScalar) -> Bool) throws(DemanglingError) -> UnicodeScalar {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3031 | guard offset < bytes.count, test(UnicodeScalar(bytes[offset])) else {
3032 | throw DemanglingError.matchFailed(wanted: "(read test function to succeed)", at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3041:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3039 | /// Throw unless the scalar at the current position equals `scalar`;
3040 | /// advance over it on success.
3041 | mutating func match(scalar: UnicodeScalar) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3042 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3043 | throw DemanglingError.matchFailed(wanted: String(scalar), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3050:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3048 | /// Throw unless the bytes at the current position match `string`'s UTF-8;
3049 | /// advance to the end of the match on success.
3050 | mutating func match(string: String) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3051 | guard conditional(string: string) else {
3052 | throw DemanglingError.matchFailed(wanted: string, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3059:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3057 | /// over them and return true; otherwise leave the position unchanged and
3058 | /// return false.
3059 | mutating func conditional(string: String) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3060 | var checkOffset = offset
3061 | for utf8Byte in string.utf8 {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3074:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3072 | /// and return true; otherwise leave the position unchanged and return
3073 | /// false.
3074 | mutating func conditional(scalar: UnicodeScalar) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3075 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3076 | return false
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3084:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3082 | /// If `test` accepts the scalar at the current position, advance over it
3083 | /// and return it; otherwise leave the position unchanged and return nil.
3084 | mutating func conditional(where test: (UnicodeScalar) -> Bool) -> UnicodeScalar? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3085 | guard offset < bytes.count else { return nil }
3086 | let candidate = UnicodeScalar(bytes[offset])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3094:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3092 | /// Advance the position by `count` bytes; throw without moving if fewer
3093 | /// remain.
3094 | mutating func skip(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3095 | guard count >= 0, count <= bytes.count - offset else {
3096 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3103:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3101 | /// Move the position back by `count` bytes; throw without moving if that
3102 | /// would pass the beginning.
3103 | mutating func backtrack(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3104 | guard count >= 0, count <= offset else {
3105 | throw DemanglingError.endedPrematurely(count: -count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3113:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3111 | /// returning them as a `String`. Throws without moving if `scalar` never
3112 | /// occurs.
3113 | mutating func readUntil(scalar: UnicodeScalar) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3114 | var searchOffset = offset
3115 | while searchOffset < bytes.count, UnicodeScalar(bytes[searchOffset]) != scalar {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3127:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3125 |
3126 | /// Consume bytes while `test` accepts them, returning the consumed range.
3127 | mutating func readRange(while test: (UnicodeScalar) -> Bool) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3128 | let startOffset = offset
3129 | while offset < bytes.count, test(UnicodeScalar(bytes[offset])) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3136:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3134 |
3135 | /// Consume bytes while `test` accepts them, returning them as a `String`.
3136 | mutating func readWhile(_ test: (UnicodeScalar) -> Bool) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3137 | materializeText(in: readRange(while: test))
3138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3142:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3140 | /// Consume exactly `count` bytes, returning the consumed range. Throws
3141 | /// without moving if fewer remain.
3142 | mutating func readRange(count: Int) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3143 | guard count >= 0, count <= bytes.count - offset else {
3144 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3155:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3153 | /// instead of trapping in an `Int` conversion — 32-bit `Int` included
3154 | /// (proposal 0004 discipline).
3155 | mutating func readRange(count: UInt64) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3156 | guard count <= UInt64(bytes.count - offset) else {
3157 | throw DemanglingError.endedPrematurely(count: Int(clamping: count), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3163:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3161 |
3162 | /// Consume exactly `count` bytes, returning them as a `String`.
3163 | mutating func readScalars(count: Int) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3164 | try materializeText(in: readRange(count: count))
3165 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3169:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3167 | /// `UInt64` counterpart of `readScalars(count:)` for mangled length
3168 | /// prefixes; see `readRange(count: UInt64)`.
3169 | mutating func readScalars(count: UInt64) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3170 | try materializeText(in: readRange(count: count))
3171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3473:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3471 | }
3472 |
3473 | mutating func demangleSwift3ProtocolNameGivenContext(context: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3474 | let name = try demangleSwift3DeclName()
3475 | let result = createNode(kind: .protocol, children: [context, name])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3491:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3489 | }
3490 |
3491 | mutating func demangleSwift3BoundGenericArgs(nominalType initialNominal: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3492 | guard var parentOrModule = initialNominal.children.first else { throw scanner.unexpectedError() }
3493 |
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3620:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3618 | }
3619 |
3620 | mutating func demangleSwift3DeclarationName(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3621 | let result = try createNode(kind: kind, children: [demangleSwift3Context(), demangleSwift3DeclName()])
3622 | nameStack.append(result)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3701:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3699 | }
3700 |
3701 | mutating func demangleSwift3GenericSignature(isPseudo: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3702 | var children = [Node]()
3703 | var c = try scanner.requirePeek()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3841:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3839 | }
3840 |
3841 | mutating func demangleSwift3DependentMemberTypeName(base: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3842 | let associatedType: Node
3843 | if scanner.conditional(scalar: "S") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4085:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4083 | }
4084 |
4085 | mutating func demangleSwift3ImplConvention(kind: Node.Kind) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4086 | let scalar = try scanner.readScalar()
4087 | switch (scalar, kind == .implErrorResult ? .implResult : kind) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4105:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4103 | }
4104 |
4105 | mutating func demangleSwift3ImplParameterOrResult(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4106 | var k: Node.Kind
4107 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4123:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4121 | }
4122 |
4123 | mutating func demangleSwift3Tuple(variadic: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4124 | var children = [Node]()
4125 | while !scanner.conditional(scalar: "_") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4140:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4138 | }
4139 |
4140 | mutating func demangleSwift3FunctionType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4141 | var children = [Node]()
4142 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4150:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4148 | }
4149 |
4150 | mutating func demangleSwift3Identifier(kind: Node.Kind? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4151 | let isPunycode = scanner.conditional(scalar: "X")
4152 | let k: Node.Kind
[788/816] Compiling Demangling Demangler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:60:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
58 |
59 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with one child.
60 | mutating func createNode(typeWithChildKind: Node.Kind, childChild: Node) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
61 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: [childChild])])
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:65:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
63 |
64 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with children.
65 | mutating func createNode(typeWithChildKind: Node.Kind, childChildren: [Node]) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
66 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: childChildren)])
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:70:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
68 |
69 | /// Compound: Swift stdlib type (`.type` > `kind` > [`.module("Swift")`, `.identifier(name)`]).
70 | mutating func createNode(swiftStdlibTypeKind: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
71 | createNode(kind: .type, children: [createNode(kind: swiftStdlibTypeKind, children: [
72 | createNode(kind: .module, text: stdlibName),
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:78:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
76 |
77 | /// Compound: Swift builtin type (`.type` > `kind(name)`).
78 | mutating func createNode(swiftBuiltinType: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
79 | createNode(kind: .type, children: [createNode(kind: swiftBuiltinType, text: name)])
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:46:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
44 | // `demangler-self-copy`.) The one visible difference: a failure reports
45 | // the scanner position after the argument was evaluated, not before.
46 | private mutating func require<Wrapped>(_ optional: Wrapped?) throws(DemanglingError) -> Wrapped {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
47 | if let optional {
48 | return optional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:54:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
52 | }
53 |
54 | private mutating func require(_ value: Bool) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
55 | if !value {
56 | throw failure
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:155:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
153 | }
154 |
155 | private mutating func demangleSymbolicReference(rawValue: UInt8) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
156 | guard let (kind, directness) = SymbolicReference.symbolicReference(for: rawValue) else {
157 | throw DemanglingError.requiredNonOptional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:362:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
360 | }
361 |
362 | private mutating func pushMultiSubstitutions(repeatCount: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
363 | try require(repeatCount <= maxRepeatCount)
364 | let nd = try require(substitutions.at(index))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:378:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
376 | }
377 |
378 | private mutating func pop(kind: Node.Kind) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
379 | return nameStack.last?.kind == kind ? pop() : nil
380 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:382:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
380 | }
381 |
382 | private mutating func pop(where cond: (Node.Kind) -> Bool) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
383 | return nameStack.last.map { cond($0.kind) } == true ? pop() : nil
384 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:386:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
384 | }
385 |
386 | private mutating func popFunctionType(kind: Node.Kind, hasClangType: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
387 | var children: [Node] = []
388 | if hasClangType {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:415:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
413 | }
414 |
415 | private mutating func popFunctionParams(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
416 | let paramsType: Node
417 | if pop(kind: .emptyList) != nil {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:425:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
423 | }
424 |
425 | private mutating func getLabel(params: Node, idx: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
426 | if isOldFunctionTypeMangling {
427 | let param = try require(params.children.at(idx))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:436:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
434 | }
435 |
436 | private mutating func popFunctionParamLabels(type: Node) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
437 | if !isOldFunctionTypeMangling && pop(kind: .emptyList) != nil {
438 | return NodeFactory.labelList
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:533:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
531 | }
532 |
533 | private mutating func popPack(kind: Node.Kind = .pack) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
534 | if pop(kind: .emptyList) != nil {
535 | return createNode(kind: .type, child: NodeFactory.pack)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:774:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
772 | }
773 |
774 | private mutating func getDependentGenericParamType(depth: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
775 | try require(depth >= 0 && index >= 0)
776 | var charIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1084:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1082 | }
1083 |
1084 | private mutating func demangleAnyGenericType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1085 | let name = try require(pop(where: { $0.isDeclName }))
1086 | let ctx = try popContext()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1256:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1254 | }
1255 |
1256 | private mutating func demangleBoundGenericArgs(nominal: Node, array: [Node], index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1257 | if nominal.kind == .typeSymbolicReference || nominal.kind == .protocolSymbolicReference {
1258 | let remaining = array.reversed().flatMap { $0.children }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1324:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1322 | }
1323 |
1324 | private mutating func demangleImplParamConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1325 | let attr: String
1326 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1347:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1345 | }
1346 |
1347 | private mutating func demangleImplResultConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1348 | let attr: String
1349 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1681:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1679 | }
1680 |
1681 | private mutating func demangleAssociatedTypeSimple(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1682 | do {
1683 | let atName = try popAssociatedTypeName()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1691:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1689 | }
1690 |
1691 | private mutating func demangleAssociatedTypeCompound(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1692 | do {
1693 | var assocTypeNames = [Node]()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1928:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1926 | }
1927 |
1928 | private mutating func demangleAutoDiffFunctionOrSimpleThunk(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1929 | var children: [Node] = []
1930 | while let node = pop() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2046:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2044 | }
2045 |
2046 | private mutating func demangleGenericSpecialization(kind: Node.Kind, droppedArguments: Node? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2047 | var spec = try demangleSpecAttributes(kind: kind)
2048 | if let droppedArguments {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2136:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2134 | }
2135 |
2136 | private mutating func demangleFuncSpecParam(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2137 | var children: [Node] = []
2138 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2241:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2239 | }
2240 |
2241 | private mutating func addFuncSpecParamNumber(param: Node, kind: FunctionSigSpecializationParamKind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2242 | let kindChild = createNode(kind: .functionSignatureSpecializationParamKind, contents: .index(kind.rawValue))
2243 | let str = scanner.readWhile { $0.isDigit }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2263:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2261 | }
2262 |
2263 | private mutating func demangleSpecAttributes(kind: Node.Kind, demangleUniqueId: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2264 | let isSerialized = scanner.conditional(scalar: "q")
2265 | let asyncRemoved = scanner.conditional(scalar: "a")
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2535:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2533 | }
2534 |
2535 | private mutating func demangleExtendedExistentialShape(nodeKind: UnicodeScalar) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2536 | let type = try require(pop(kind: .type))
2537 | var genSig: Node?
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2559:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2557 | }
2558 |
2559 | private mutating func demangleAccessor(child: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2560 | let kind: Node.Kind
2561 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2645:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2643 | }
2644 |
2645 | private mutating func demangleEntity(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2646 | let type = try require(pop(kind: .type))
2647 | let labelList = try popFunctionParamLabels(type: type)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2718:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2716 | }
2717 |
2718 | private mutating func demangleGenericSignature(hasParamCounts: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2719 | var paramCounts: [Node] = []
2720 | if hasParamCounts {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3030:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3028 | /// Throw unless `test` accepts the scalar at the current position; on
3029 | /// success return it and advance.
3030 | mutating func read(where test: (UnicodeScalar) -> Bool) throws(DemanglingError) -> UnicodeScalar {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3031 | guard offset < bytes.count, test(UnicodeScalar(bytes[offset])) else {
3032 | throw DemanglingError.matchFailed(wanted: "(read test function to succeed)", at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3041:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3039 | /// Throw unless the scalar at the current position equals `scalar`;
3040 | /// advance over it on success.
3041 | mutating func match(scalar: UnicodeScalar) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3042 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3043 | throw DemanglingError.matchFailed(wanted: String(scalar), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3050:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3048 | /// Throw unless the bytes at the current position match `string`'s UTF-8;
3049 | /// advance to the end of the match on success.
3050 | mutating func match(string: String) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3051 | guard conditional(string: string) else {
3052 | throw DemanglingError.matchFailed(wanted: string, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3059:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3057 | /// over them and return true; otherwise leave the position unchanged and
3058 | /// return false.
3059 | mutating func conditional(string: String) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3060 | var checkOffset = offset
3061 | for utf8Byte in string.utf8 {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3074:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3072 | /// and return true; otherwise leave the position unchanged and return
3073 | /// false.
3074 | mutating func conditional(scalar: UnicodeScalar) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3075 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3076 | return false
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3084:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3082 | /// If `test` accepts the scalar at the current position, advance over it
3083 | /// and return it; otherwise leave the position unchanged and return nil.
3084 | mutating func conditional(where test: (UnicodeScalar) -> Bool) -> UnicodeScalar? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3085 | guard offset < bytes.count else { return nil }
3086 | let candidate = UnicodeScalar(bytes[offset])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3094:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3092 | /// Advance the position by `count` bytes; throw without moving if fewer
3093 | /// remain.
3094 | mutating func skip(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3095 | guard count >= 0, count <= bytes.count - offset else {
3096 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3103:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3101 | /// Move the position back by `count` bytes; throw without moving if that
3102 | /// would pass the beginning.
3103 | mutating func backtrack(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3104 | guard count >= 0, count <= offset else {
3105 | throw DemanglingError.endedPrematurely(count: -count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3113:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3111 | /// returning them as a `String`. Throws without moving if `scalar` never
3112 | /// occurs.
3113 | mutating func readUntil(scalar: UnicodeScalar) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3114 | var searchOffset = offset
3115 | while searchOffset < bytes.count, UnicodeScalar(bytes[searchOffset]) != scalar {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3127:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3125 |
3126 | /// Consume bytes while `test` accepts them, returning the consumed range.
3127 | mutating func readRange(while test: (UnicodeScalar) -> Bool) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3128 | let startOffset = offset
3129 | while offset < bytes.count, test(UnicodeScalar(bytes[offset])) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3136:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3134 |
3135 | /// Consume bytes while `test` accepts them, returning them as a `String`.
3136 | mutating func readWhile(_ test: (UnicodeScalar) -> Bool) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3137 | materializeText(in: readRange(while: test))
3138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3142:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3140 | /// Consume exactly `count` bytes, returning the consumed range. Throws
3141 | /// without moving if fewer remain.
3142 | mutating func readRange(count: Int) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3143 | guard count >= 0, count <= bytes.count - offset else {
3144 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3155:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3153 | /// instead of trapping in an `Int` conversion — 32-bit `Int` included
3154 | /// (proposal 0004 discipline).
3155 | mutating func readRange(count: UInt64) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3156 | guard count <= UInt64(bytes.count - offset) else {
3157 | throw DemanglingError.endedPrematurely(count: Int(clamping: count), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3163:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3161 |
3162 | /// Consume exactly `count` bytes, returning them as a `String`.
3163 | mutating func readScalars(count: Int) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3164 | try materializeText(in: readRange(count: count))
3165 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3169:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3167 | /// `UInt64` counterpart of `readScalars(count:)` for mangled length
3168 | /// prefixes; see `readRange(count: UInt64)`.
3169 | mutating func readScalars(count: UInt64) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3170 | try materializeText(in: readRange(count: count))
3171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3473:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3471 | }
3472 |
3473 | mutating func demangleSwift3ProtocolNameGivenContext(context: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3474 | let name = try demangleSwift3DeclName()
3475 | let result = createNode(kind: .protocol, children: [context, name])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3491:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3489 | }
3490 |
3491 | mutating func demangleSwift3BoundGenericArgs(nominalType initialNominal: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3492 | guard var parentOrModule = initialNominal.children.first else { throw scanner.unexpectedError() }
3493 |
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3620:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3618 | }
3619 |
3620 | mutating func demangleSwift3DeclarationName(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3621 | let result = try createNode(kind: kind, children: [demangleSwift3Context(), demangleSwift3DeclName()])
3622 | nameStack.append(result)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3701:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3699 | }
3700 |
3701 | mutating func demangleSwift3GenericSignature(isPseudo: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3702 | var children = [Node]()
3703 | var c = try scanner.requirePeek()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3841:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3839 | }
3840 |
3841 | mutating func demangleSwift3DependentMemberTypeName(base: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3842 | let associatedType: Node
3843 | if scanner.conditional(scalar: "S") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4085:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4083 | }
4084 |
4085 | mutating func demangleSwift3ImplConvention(kind: Node.Kind) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4086 | let scalar = try scanner.readScalar()
4087 | switch (scalar, kind == .implErrorResult ? .implResult : kind) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4105:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4103 | }
4104 |
4105 | mutating func demangleSwift3ImplParameterOrResult(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4106 | var k: Node.Kind
4107 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4123:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4121 | }
4122 |
4123 | mutating func demangleSwift3Tuple(variadic: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4124 | var children = [Node]()
4125 | while !scanner.conditional(scalar: "_") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4140:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4138 | }
4139 |
4140 | mutating func demangleSwift3FunctionType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4141 | var children = [Node]()
4142 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4150:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4148 | }
4149 |
4150 | mutating func demangleSwift3Identifier(kind: Node.Kind? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4151 | let isPunycode = scanner.conditional(scalar: "X")
4152 | let k: Node.Kind
[789/816] Compiling Demangling DemanglerRuntimeSelection.swift
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:60:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
58 |
59 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with one child.
60 | mutating func createNode(typeWithChildKind: Node.Kind, childChild: Node) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
61 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: [childChild])])
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:65:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
63 |
64 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with children.
65 | mutating func createNode(typeWithChildKind: Node.Kind, childChildren: [Node]) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
66 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: childChildren)])
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:70:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
68 |
69 | /// Compound: Swift stdlib type (`.type` > `kind` > [`.module("Swift")`, `.identifier(name)`]).
70 | mutating func createNode(swiftStdlibTypeKind: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
71 | createNode(kind: .type, children: [createNode(kind: swiftStdlibTypeKind, children: [
72 | createNode(kind: .module, text: stdlibName),
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:78:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
76 |
77 | /// Compound: Swift builtin type (`.type` > `kind(name)`).
78 | mutating func createNode(swiftBuiltinType: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
79 | createNode(kind: .type, children: [createNode(kind: swiftBuiltinType, text: name)])
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:46:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
44 | // `demangler-self-copy`.) The one visible difference: a failure reports
45 | // the scanner position after the argument was evaluated, not before.
46 | private mutating func require<Wrapped>(_ optional: Wrapped?) throws(DemanglingError) -> Wrapped {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
47 | if let optional {
48 | return optional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:54:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
52 | }
53 |
54 | private mutating func require(_ value: Bool) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
55 | if !value {
56 | throw failure
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:155:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
153 | }
154 |
155 | private mutating func demangleSymbolicReference(rawValue: UInt8) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
156 | guard let (kind, directness) = SymbolicReference.symbolicReference(for: rawValue) else {
157 | throw DemanglingError.requiredNonOptional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:362:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
360 | }
361 |
362 | private mutating func pushMultiSubstitutions(repeatCount: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
363 | try require(repeatCount <= maxRepeatCount)
364 | let nd = try require(substitutions.at(index))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:378:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
376 | }
377 |
378 | private mutating func pop(kind: Node.Kind) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
379 | return nameStack.last?.kind == kind ? pop() : nil
380 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:382:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
380 | }
381 |
382 | private mutating func pop(where cond: (Node.Kind) -> Bool) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
383 | return nameStack.last.map { cond($0.kind) } == true ? pop() : nil
384 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:386:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
384 | }
385 |
386 | private mutating func popFunctionType(kind: Node.Kind, hasClangType: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
387 | var children: [Node] = []
388 | if hasClangType {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:415:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
413 | }
414 |
415 | private mutating func popFunctionParams(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
416 | let paramsType: Node
417 | if pop(kind: .emptyList) != nil {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:425:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
423 | }
424 |
425 | private mutating func getLabel(params: Node, idx: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
426 | if isOldFunctionTypeMangling {
427 | let param = try require(params.children.at(idx))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:436:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
434 | }
435 |
436 | private mutating func popFunctionParamLabels(type: Node) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
437 | if !isOldFunctionTypeMangling && pop(kind: .emptyList) != nil {
438 | return NodeFactory.labelList
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:533:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
531 | }
532 |
533 | private mutating func popPack(kind: Node.Kind = .pack) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
534 | if pop(kind: .emptyList) != nil {
535 | return createNode(kind: .type, child: NodeFactory.pack)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:774:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
772 | }
773 |
774 | private mutating func getDependentGenericParamType(depth: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
775 | try require(depth >= 0 && index >= 0)
776 | var charIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1084:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1082 | }
1083 |
1084 | private mutating func demangleAnyGenericType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1085 | let name = try require(pop(where: { $0.isDeclName }))
1086 | let ctx = try popContext()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1256:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1254 | }
1255 |
1256 | private mutating func demangleBoundGenericArgs(nominal: Node, array: [Node], index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1257 | if nominal.kind == .typeSymbolicReference || nominal.kind == .protocolSymbolicReference {
1258 | let remaining = array.reversed().flatMap { $0.children }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1324:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1322 | }
1323 |
1324 | private mutating func demangleImplParamConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1325 | let attr: String
1326 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1347:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1345 | }
1346 |
1347 | private mutating func demangleImplResultConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1348 | let attr: String
1349 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1681:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1679 | }
1680 |
1681 | private mutating func demangleAssociatedTypeSimple(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1682 | do {
1683 | let atName = try popAssociatedTypeName()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1691:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1689 | }
1690 |
1691 | private mutating func demangleAssociatedTypeCompound(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1692 | do {
1693 | var assocTypeNames = [Node]()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1928:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1926 | }
1927 |
1928 | private mutating func demangleAutoDiffFunctionOrSimpleThunk(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1929 | var children: [Node] = []
1930 | while let node = pop() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2046:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2044 | }
2045 |
2046 | private mutating func demangleGenericSpecialization(kind: Node.Kind, droppedArguments: Node? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2047 | var spec = try demangleSpecAttributes(kind: kind)
2048 | if let droppedArguments {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2136:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2134 | }
2135 |
2136 | private mutating func demangleFuncSpecParam(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2137 | var children: [Node] = []
2138 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2241:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2239 | }
2240 |
2241 | private mutating func addFuncSpecParamNumber(param: Node, kind: FunctionSigSpecializationParamKind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2242 | let kindChild = createNode(kind: .functionSignatureSpecializationParamKind, contents: .index(kind.rawValue))
2243 | let str = scanner.readWhile { $0.isDigit }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2263:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2261 | }
2262 |
2263 | private mutating func demangleSpecAttributes(kind: Node.Kind, demangleUniqueId: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2264 | let isSerialized = scanner.conditional(scalar: "q")
2265 | let asyncRemoved = scanner.conditional(scalar: "a")
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2535:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2533 | }
2534 |
2535 | private mutating func demangleExtendedExistentialShape(nodeKind: UnicodeScalar) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2536 | let type = try require(pop(kind: .type))
2537 | var genSig: Node?
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2559:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2557 | }
2558 |
2559 | private mutating func demangleAccessor(child: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2560 | let kind: Node.Kind
2561 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2645:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2643 | }
2644 |
2645 | private mutating func demangleEntity(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2646 | let type = try require(pop(kind: .type))
2647 | let labelList = try popFunctionParamLabels(type: type)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2718:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2716 | }
2717 |
2718 | private mutating func demangleGenericSignature(hasParamCounts: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2719 | var paramCounts: [Node] = []
2720 | if hasParamCounts {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3030:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3028 | /// Throw unless `test` accepts the scalar at the current position; on
3029 | /// success return it and advance.
3030 | mutating func read(where test: (UnicodeScalar) -> Bool) throws(DemanglingError) -> UnicodeScalar {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3031 | guard offset < bytes.count, test(UnicodeScalar(bytes[offset])) else {
3032 | throw DemanglingError.matchFailed(wanted: "(read test function to succeed)", at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3041:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3039 | /// Throw unless the scalar at the current position equals `scalar`;
3040 | /// advance over it on success.
3041 | mutating func match(scalar: UnicodeScalar) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3042 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3043 | throw DemanglingError.matchFailed(wanted: String(scalar), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3050:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3048 | /// Throw unless the bytes at the current position match `string`'s UTF-8;
3049 | /// advance to the end of the match on success.
3050 | mutating func match(string: String) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3051 | guard conditional(string: string) else {
3052 | throw DemanglingError.matchFailed(wanted: string, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3059:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3057 | /// over them and return true; otherwise leave the position unchanged and
3058 | /// return false.
3059 | mutating func conditional(string: String) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3060 | var checkOffset = offset
3061 | for utf8Byte in string.utf8 {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3074:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3072 | /// and return true; otherwise leave the position unchanged and return
3073 | /// false.
3074 | mutating func conditional(scalar: UnicodeScalar) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3075 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3076 | return false
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3084:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3082 | /// If `test` accepts the scalar at the current position, advance over it
3083 | /// and return it; otherwise leave the position unchanged and return nil.
3084 | mutating func conditional(where test: (UnicodeScalar) -> Bool) -> UnicodeScalar? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3085 | guard offset < bytes.count else { return nil }
3086 | let candidate = UnicodeScalar(bytes[offset])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3094:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3092 | /// Advance the position by `count` bytes; throw without moving if fewer
3093 | /// remain.
3094 | mutating func skip(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3095 | guard count >= 0, count <= bytes.count - offset else {
3096 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3103:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3101 | /// Move the position back by `count` bytes; throw without moving if that
3102 | /// would pass the beginning.
3103 | mutating func backtrack(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3104 | guard count >= 0, count <= offset else {
3105 | throw DemanglingError.endedPrematurely(count: -count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3113:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3111 | /// returning them as a `String`. Throws without moving if `scalar` never
3112 | /// occurs.
3113 | mutating func readUntil(scalar: UnicodeScalar) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3114 | var searchOffset = offset
3115 | while searchOffset < bytes.count, UnicodeScalar(bytes[searchOffset]) != scalar {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3127:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3125 |
3126 | /// Consume bytes while `test` accepts them, returning the consumed range.
3127 | mutating func readRange(while test: (UnicodeScalar) -> Bool) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3128 | let startOffset = offset
3129 | while offset < bytes.count, test(UnicodeScalar(bytes[offset])) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3136:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3134 |
3135 | /// Consume bytes while `test` accepts them, returning them as a `String`.
3136 | mutating func readWhile(_ test: (UnicodeScalar) -> Bool) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3137 | materializeText(in: readRange(while: test))
3138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3142:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3140 | /// Consume exactly `count` bytes, returning the consumed range. Throws
3141 | /// without moving if fewer remain.
3142 | mutating func readRange(count: Int) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3143 | guard count >= 0, count <= bytes.count - offset else {
3144 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3155:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3153 | /// instead of trapping in an `Int` conversion — 32-bit `Int` included
3154 | /// (proposal 0004 discipline).
3155 | mutating func readRange(count: UInt64) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3156 | guard count <= UInt64(bytes.count - offset) else {
3157 | throw DemanglingError.endedPrematurely(count: Int(clamping: count), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3163:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3161 |
3162 | /// Consume exactly `count` bytes, returning them as a `String`.
3163 | mutating func readScalars(count: Int) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3164 | try materializeText(in: readRange(count: count))
3165 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3169:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3167 | /// `UInt64` counterpart of `readScalars(count:)` for mangled length
3168 | /// prefixes; see `readRange(count: UInt64)`.
3169 | mutating func readScalars(count: UInt64) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3170 | try materializeText(in: readRange(count: count))
3171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3473:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3471 | }
3472 |
3473 | mutating func demangleSwift3ProtocolNameGivenContext(context: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3474 | let name = try demangleSwift3DeclName()
3475 | let result = createNode(kind: .protocol, children: [context, name])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3491:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3489 | }
3490 |
3491 | mutating func demangleSwift3BoundGenericArgs(nominalType initialNominal: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3492 | guard var parentOrModule = initialNominal.children.first else { throw scanner.unexpectedError() }
3493 |
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3620:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3618 | }
3619 |
3620 | mutating func demangleSwift3DeclarationName(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3621 | let result = try createNode(kind: kind, children: [demangleSwift3Context(), demangleSwift3DeclName()])
3622 | nameStack.append(result)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3701:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3699 | }
3700 |
3701 | mutating func demangleSwift3GenericSignature(isPseudo: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3702 | var children = [Node]()
3703 | var c = try scanner.requirePeek()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3841:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3839 | }
3840 |
3841 | mutating func demangleSwift3DependentMemberTypeName(base: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3842 | let associatedType: Node
3843 | if scanner.conditional(scalar: "S") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4085:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4083 | }
4084 |
4085 | mutating func demangleSwift3ImplConvention(kind: Node.Kind) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4086 | let scalar = try scanner.readScalar()
4087 | switch (scalar, kind == .implErrorResult ? .implResult : kind) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4105:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4103 | }
4104 |
4105 | mutating func demangleSwift3ImplParameterOrResult(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4106 | var k: Node.Kind
4107 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4123:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4121 | }
4122 |
4123 | mutating func demangleSwift3Tuple(variadic: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4124 | var children = [Node]()
4125 | while !scanner.conditional(scalar: "_") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4140:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4138 | }
4139 |
4140 | mutating func demangleSwift3FunctionType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4141 | var children = [Node]()
4142 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4150:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4148 | }
4149 |
4150 | mutating func demangleSwift3Identifier(kind: Node.Kind? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4151 | let isPunycode = scanner.conditional(scalar: "X")
4152 | let k: Node.Kind
[790/816] Compiling Demangling RemangleInterface.swift
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:60:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
58 |
59 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with one child.
60 | mutating func createNode(typeWithChildKind: Node.Kind, childChild: Node) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
61 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: [childChild])])
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:65:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
63 |
64 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with children.
65 | mutating func createNode(typeWithChildKind: Node.Kind, childChildren: [Node]) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
66 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: childChildren)])
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:70:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
68 |
69 | /// Compound: Swift stdlib type (`.type` > `kind` > [`.module("Swift")`, `.identifier(name)`]).
70 | mutating func createNode(swiftStdlibTypeKind: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
71 | createNode(kind: .type, children: [createNode(kind: swiftStdlibTypeKind, children: [
72 | createNode(kind: .module, text: stdlibName),
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:78:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
76 |
77 | /// Compound: Swift builtin type (`.type` > `kind(name)`).
78 | mutating func createNode(swiftBuiltinType: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
79 | createNode(kind: .type, children: [createNode(kind: swiftBuiltinType, text: name)])
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:46:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
44 | // `demangler-self-copy`.) The one visible difference: a failure reports
45 | // the scanner position after the argument was evaluated, not before.
46 | private mutating func require<Wrapped>(_ optional: Wrapped?) throws(DemanglingError) -> Wrapped {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
47 | if let optional {
48 | return optional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:54:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
52 | }
53 |
54 | private mutating func require(_ value: Bool) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
55 | if !value {
56 | throw failure
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:155:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
153 | }
154 |
155 | private mutating func demangleSymbolicReference(rawValue: UInt8) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
156 | guard let (kind, directness) = SymbolicReference.symbolicReference(for: rawValue) else {
157 | throw DemanglingError.requiredNonOptional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:362:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
360 | }
361 |
362 | private mutating func pushMultiSubstitutions(repeatCount: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
363 | try require(repeatCount <= maxRepeatCount)
364 | let nd = try require(substitutions.at(index))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:378:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
376 | }
377 |
378 | private mutating func pop(kind: Node.Kind) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
379 | return nameStack.last?.kind == kind ? pop() : nil
380 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:382:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
380 | }
381 |
382 | private mutating func pop(where cond: (Node.Kind) -> Bool) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
383 | return nameStack.last.map { cond($0.kind) } == true ? pop() : nil
384 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:386:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
384 | }
385 |
386 | private mutating func popFunctionType(kind: Node.Kind, hasClangType: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
387 | var children: [Node] = []
388 | if hasClangType {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:415:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
413 | }
414 |
415 | private mutating func popFunctionParams(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
416 | let paramsType: Node
417 | if pop(kind: .emptyList) != nil {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:425:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
423 | }
424 |
425 | private mutating func getLabel(params: Node, idx: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
426 | if isOldFunctionTypeMangling {
427 | let param = try require(params.children.at(idx))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:436:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
434 | }
435 |
436 | private mutating func popFunctionParamLabels(type: Node) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
437 | if !isOldFunctionTypeMangling && pop(kind: .emptyList) != nil {
438 | return NodeFactory.labelList
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:533:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
531 | }
532 |
533 | private mutating func popPack(kind: Node.Kind = .pack) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
534 | if pop(kind: .emptyList) != nil {
535 | return createNode(kind: .type, child: NodeFactory.pack)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:774:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
772 | }
773 |
774 | private mutating func getDependentGenericParamType(depth: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
775 | try require(depth >= 0 && index >= 0)
776 | var charIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1084:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1082 | }
1083 |
1084 | private mutating func demangleAnyGenericType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1085 | let name = try require(pop(where: { $0.isDeclName }))
1086 | let ctx = try popContext()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1256:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1254 | }
1255 |
1256 | private mutating func demangleBoundGenericArgs(nominal: Node, array: [Node], index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1257 | if nominal.kind == .typeSymbolicReference || nominal.kind == .protocolSymbolicReference {
1258 | let remaining = array.reversed().flatMap { $0.children }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1324:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1322 | }
1323 |
1324 | private mutating func demangleImplParamConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1325 | let attr: String
1326 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1347:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1345 | }
1346 |
1347 | private mutating func demangleImplResultConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1348 | let attr: String
1349 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1681:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1679 | }
1680 |
1681 | private mutating func demangleAssociatedTypeSimple(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1682 | do {
1683 | let atName = try popAssociatedTypeName()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1691:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1689 | }
1690 |
1691 | private mutating func demangleAssociatedTypeCompound(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1692 | do {
1693 | var assocTypeNames = [Node]()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1928:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1926 | }
1927 |
1928 | private mutating func demangleAutoDiffFunctionOrSimpleThunk(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1929 | var children: [Node] = []
1930 | while let node = pop() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2046:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2044 | }
2045 |
2046 | private mutating func demangleGenericSpecialization(kind: Node.Kind, droppedArguments: Node? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2047 | var spec = try demangleSpecAttributes(kind: kind)
2048 | if let droppedArguments {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2136:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2134 | }
2135 |
2136 | private mutating func demangleFuncSpecParam(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2137 | var children: [Node] = []
2138 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2241:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2239 | }
2240 |
2241 | private mutating func addFuncSpecParamNumber(param: Node, kind: FunctionSigSpecializationParamKind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2242 | let kindChild = createNode(kind: .functionSignatureSpecializationParamKind, contents: .index(kind.rawValue))
2243 | let str = scanner.readWhile { $0.isDigit }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2263:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2261 | }
2262 |
2263 | private mutating func demangleSpecAttributes(kind: Node.Kind, demangleUniqueId: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2264 | let isSerialized = scanner.conditional(scalar: "q")
2265 | let asyncRemoved = scanner.conditional(scalar: "a")
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2535:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2533 | }
2534 |
2535 | private mutating func demangleExtendedExistentialShape(nodeKind: UnicodeScalar) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2536 | let type = try require(pop(kind: .type))
2537 | var genSig: Node?
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2559:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2557 | }
2558 |
2559 | private mutating func demangleAccessor(child: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2560 | let kind: Node.Kind
2561 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2645:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2643 | }
2644 |
2645 | private mutating func demangleEntity(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2646 | let type = try require(pop(kind: .type))
2647 | let labelList = try popFunctionParamLabels(type: type)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2718:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2716 | }
2717 |
2718 | private mutating func demangleGenericSignature(hasParamCounts: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2719 | var paramCounts: [Node] = []
2720 | if hasParamCounts {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3030:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3028 | /// Throw unless `test` accepts the scalar at the current position; on
3029 | /// success return it and advance.
3030 | mutating func read(where test: (UnicodeScalar) -> Bool) throws(DemanglingError) -> UnicodeScalar {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3031 | guard offset < bytes.count, test(UnicodeScalar(bytes[offset])) else {
3032 | throw DemanglingError.matchFailed(wanted: "(read test function to succeed)", at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3041:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3039 | /// Throw unless the scalar at the current position equals `scalar`;
3040 | /// advance over it on success.
3041 | mutating func match(scalar: UnicodeScalar) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3042 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3043 | throw DemanglingError.matchFailed(wanted: String(scalar), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3050:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3048 | /// Throw unless the bytes at the current position match `string`'s UTF-8;
3049 | /// advance to the end of the match on success.
3050 | mutating func match(string: String) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3051 | guard conditional(string: string) else {
3052 | throw DemanglingError.matchFailed(wanted: string, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3059:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3057 | /// over them and return true; otherwise leave the position unchanged and
3058 | /// return false.
3059 | mutating func conditional(string: String) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3060 | var checkOffset = offset
3061 | for utf8Byte in string.utf8 {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3074:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3072 | /// and return true; otherwise leave the position unchanged and return
3073 | /// false.
3074 | mutating func conditional(scalar: UnicodeScalar) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3075 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3076 | return false
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3084:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3082 | /// If `test` accepts the scalar at the current position, advance over it
3083 | /// and return it; otherwise leave the position unchanged and return nil.
3084 | mutating func conditional(where test: (UnicodeScalar) -> Bool) -> UnicodeScalar? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3085 | guard offset < bytes.count else { return nil }
3086 | let candidate = UnicodeScalar(bytes[offset])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3094:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3092 | /// Advance the position by `count` bytes; throw without moving if fewer
3093 | /// remain.
3094 | mutating func skip(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3095 | guard count >= 0, count <= bytes.count - offset else {
3096 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3103:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3101 | /// Move the position back by `count` bytes; throw without moving if that
3102 | /// would pass the beginning.
3103 | mutating func backtrack(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3104 | guard count >= 0, count <= offset else {
3105 | throw DemanglingError.endedPrematurely(count: -count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3113:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3111 | /// returning them as a `String`. Throws without moving if `scalar` never
3112 | /// occurs.
3113 | mutating func readUntil(scalar: UnicodeScalar) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3114 | var searchOffset = offset
3115 | while searchOffset < bytes.count, UnicodeScalar(bytes[searchOffset]) != scalar {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3127:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3125 |
3126 | /// Consume bytes while `test` accepts them, returning the consumed range.
3127 | mutating func readRange(while test: (UnicodeScalar) -> Bool) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3128 | let startOffset = offset
3129 | while offset < bytes.count, test(UnicodeScalar(bytes[offset])) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3136:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3134 |
3135 | /// Consume bytes while `test` accepts them, returning them as a `String`.
3136 | mutating func readWhile(_ test: (UnicodeScalar) -> Bool) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3137 | materializeText(in: readRange(while: test))
3138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3142:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3140 | /// Consume exactly `count` bytes, returning the consumed range. Throws
3141 | /// without moving if fewer remain.
3142 | mutating func readRange(count: Int) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3143 | guard count >= 0, count <= bytes.count - offset else {
3144 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3155:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3153 | /// instead of trapping in an `Int` conversion — 32-bit `Int` included
3154 | /// (proposal 0004 discipline).
3155 | mutating func readRange(count: UInt64) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3156 | guard count <= UInt64(bytes.count - offset) else {
3157 | throw DemanglingError.endedPrematurely(count: Int(clamping: count), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3163:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3161 |
3162 | /// Consume exactly `count` bytes, returning them as a `String`.
3163 | mutating func readScalars(count: Int) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3164 | try materializeText(in: readRange(count: count))
3165 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3169:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3167 | /// `UInt64` counterpart of `readScalars(count:)` for mangled length
3168 | /// prefixes; see `readRange(count: UInt64)`.
3169 | mutating func readScalars(count: UInt64) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3170 | try materializeText(in: readRange(count: count))
3171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3473:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3471 | }
3472 |
3473 | mutating func demangleSwift3ProtocolNameGivenContext(context: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3474 | let name = try demangleSwift3DeclName()
3475 | let result = createNode(kind: .protocol, children: [context, name])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3491:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3489 | }
3490 |
3491 | mutating func demangleSwift3BoundGenericArgs(nominalType initialNominal: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3492 | guard var parentOrModule = initialNominal.children.first else { throw scanner.unexpectedError() }
3493 |
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3620:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3618 | }
3619 |
3620 | mutating func demangleSwift3DeclarationName(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3621 | let result = try createNode(kind: kind, children: [demangleSwift3Context(), demangleSwift3DeclName()])
3622 | nameStack.append(result)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3701:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3699 | }
3700 |
3701 | mutating func demangleSwift3GenericSignature(isPseudo: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3702 | var children = [Node]()
3703 | var c = try scanner.requirePeek()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3841:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3839 | }
3840 |
3841 | mutating func demangleSwift3DependentMemberTypeName(base: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3842 | let associatedType: Node
3843 | if scanner.conditional(scalar: "S") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4085:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4083 | }
4084 |
4085 | mutating func demangleSwift3ImplConvention(kind: Node.Kind) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4086 | let scalar = try scanner.readScalar()
4087 | switch (scalar, kind == .implErrorResult ? .implResult : kind) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4105:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4103 | }
4104 |
4105 | mutating func demangleSwift3ImplParameterOrResult(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4106 | var k: Node.Kind
4107 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4123:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4121 | }
4122 |
4123 | mutating func demangleSwift3Tuple(variadic: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4124 | var children = [Node]()
4125 | while !scanner.conditional(scalar: "_") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4140:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4138 | }
4139 |
4140 | mutating func demangleSwift3FunctionType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4141 | var children = [Node]()
4142 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4150:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4148 | }
4149 |
4150 | mutating func demangleSwift3Identifier(kind: Node.Kind? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4151 | let isPunycode = scanner.conditional(scalar: "X")
4152 | let k: Node.Kind
[791/816] Compiling Demangling Remangler.swift
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:60:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
58 |
59 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with one child.
60 | mutating func createNode(typeWithChildKind: Node.Kind, childChild: Node) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
61 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: [childChild])])
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:65:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
63 |
64 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with children.
65 | mutating func createNode(typeWithChildKind: Node.Kind, childChildren: [Node]) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
66 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: childChildren)])
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:70:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
68 |
69 | /// Compound: Swift stdlib type (`.type` > `kind` > [`.module("Swift")`, `.identifier(name)`]).
70 | mutating func createNode(swiftStdlibTypeKind: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
71 | createNode(kind: .type, children: [createNode(kind: swiftStdlibTypeKind, children: [
72 | createNode(kind: .module, text: stdlibName),
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:78:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
76 |
77 | /// Compound: Swift builtin type (`.type` > `kind(name)`).
78 | mutating func createNode(swiftBuiltinType: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
79 | createNode(kind: .type, children: [createNode(kind: swiftBuiltinType, text: name)])
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:46:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
44 | // `demangler-self-copy`.) The one visible difference: a failure reports
45 | // the scanner position after the argument was evaluated, not before.
46 | private mutating func require<Wrapped>(_ optional: Wrapped?) throws(DemanglingError) -> Wrapped {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
47 | if let optional {
48 | return optional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:54:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
52 | }
53 |
54 | private mutating func require(_ value: Bool) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
55 | if !value {
56 | throw failure
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:155:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
153 | }
154 |
155 | private mutating func demangleSymbolicReference(rawValue: UInt8) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
156 | guard let (kind, directness) = SymbolicReference.symbolicReference(for: rawValue) else {
157 | throw DemanglingError.requiredNonOptional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:362:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
360 | }
361 |
362 | private mutating func pushMultiSubstitutions(repeatCount: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
363 | try require(repeatCount <= maxRepeatCount)
364 | let nd = try require(substitutions.at(index))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:378:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
376 | }
377 |
378 | private mutating func pop(kind: Node.Kind) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
379 | return nameStack.last?.kind == kind ? pop() : nil
380 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:382:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
380 | }
381 |
382 | private mutating func pop(where cond: (Node.Kind) -> Bool) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
383 | return nameStack.last.map { cond($0.kind) } == true ? pop() : nil
384 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:386:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
384 | }
385 |
386 | private mutating func popFunctionType(kind: Node.Kind, hasClangType: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
387 | var children: [Node] = []
388 | if hasClangType {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:415:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
413 | }
414 |
415 | private mutating func popFunctionParams(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
416 | let paramsType: Node
417 | if pop(kind: .emptyList) != nil {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:425:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
423 | }
424 |
425 | private mutating func getLabel(params: Node, idx: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
426 | if isOldFunctionTypeMangling {
427 | let param = try require(params.children.at(idx))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:436:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
434 | }
435 |
436 | private mutating func popFunctionParamLabels(type: Node) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
437 | if !isOldFunctionTypeMangling && pop(kind: .emptyList) != nil {
438 | return NodeFactory.labelList
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:533:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
531 | }
532 |
533 | private mutating func popPack(kind: Node.Kind = .pack) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
534 | if pop(kind: .emptyList) != nil {
535 | return createNode(kind: .type, child: NodeFactory.pack)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:774:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
772 | }
773 |
774 | private mutating func getDependentGenericParamType(depth: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
775 | try require(depth >= 0 && index >= 0)
776 | var charIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1084:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1082 | }
1083 |
1084 | private mutating func demangleAnyGenericType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1085 | let name = try require(pop(where: { $0.isDeclName }))
1086 | let ctx = try popContext()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1256:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1254 | }
1255 |
1256 | private mutating func demangleBoundGenericArgs(nominal: Node, array: [Node], index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1257 | if nominal.kind == .typeSymbolicReference || nominal.kind == .protocolSymbolicReference {
1258 | let remaining = array.reversed().flatMap { $0.children }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1324:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1322 | }
1323 |
1324 | private mutating func demangleImplParamConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1325 | let attr: String
1326 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1347:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1345 | }
1346 |
1347 | private mutating func demangleImplResultConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1348 | let attr: String
1349 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1681:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1679 | }
1680 |
1681 | private mutating func demangleAssociatedTypeSimple(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1682 | do {
1683 | let atName = try popAssociatedTypeName()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1691:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1689 | }
1690 |
1691 | private mutating func demangleAssociatedTypeCompound(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1692 | do {
1693 | var assocTypeNames = [Node]()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1928:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1926 | }
1927 |
1928 | private mutating func demangleAutoDiffFunctionOrSimpleThunk(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1929 | var children: [Node] = []
1930 | while let node = pop() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2046:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2044 | }
2045 |
2046 | private mutating func demangleGenericSpecialization(kind: Node.Kind, droppedArguments: Node? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2047 | var spec = try demangleSpecAttributes(kind: kind)
2048 | if let droppedArguments {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2136:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2134 | }
2135 |
2136 | private mutating func demangleFuncSpecParam(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2137 | var children: [Node] = []
2138 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2241:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2239 | }
2240 |
2241 | private mutating func addFuncSpecParamNumber(param: Node, kind: FunctionSigSpecializationParamKind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2242 | let kindChild = createNode(kind: .functionSignatureSpecializationParamKind, contents: .index(kind.rawValue))
2243 | let str = scanner.readWhile { $0.isDigit }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2263:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2261 | }
2262 |
2263 | private mutating func demangleSpecAttributes(kind: Node.Kind, demangleUniqueId: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2264 | let isSerialized = scanner.conditional(scalar: "q")
2265 | let asyncRemoved = scanner.conditional(scalar: "a")
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2535:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2533 | }
2534 |
2535 | private mutating func demangleExtendedExistentialShape(nodeKind: UnicodeScalar) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2536 | let type = try require(pop(kind: .type))
2537 | var genSig: Node?
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2559:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2557 | }
2558 |
2559 | private mutating func demangleAccessor(child: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2560 | let kind: Node.Kind
2561 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2645:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2643 | }
2644 |
2645 | private mutating func demangleEntity(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2646 | let type = try require(pop(kind: .type))
2647 | let labelList = try popFunctionParamLabels(type: type)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2718:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2716 | }
2717 |
2718 | private mutating func demangleGenericSignature(hasParamCounts: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2719 | var paramCounts: [Node] = []
2720 | if hasParamCounts {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3030:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3028 | /// Throw unless `test` accepts the scalar at the current position; on
3029 | /// success return it and advance.
3030 | mutating func read(where test: (UnicodeScalar) -> Bool) throws(DemanglingError) -> UnicodeScalar {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3031 | guard offset < bytes.count, test(UnicodeScalar(bytes[offset])) else {
3032 | throw DemanglingError.matchFailed(wanted: "(read test function to succeed)", at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3041:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3039 | /// Throw unless the scalar at the current position equals `scalar`;
3040 | /// advance over it on success.
3041 | mutating func match(scalar: UnicodeScalar) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3042 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3043 | throw DemanglingError.matchFailed(wanted: String(scalar), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3050:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3048 | /// Throw unless the bytes at the current position match `string`'s UTF-8;
3049 | /// advance to the end of the match on success.
3050 | mutating func match(string: String) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3051 | guard conditional(string: string) else {
3052 | throw DemanglingError.matchFailed(wanted: string, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3059:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3057 | /// over them and return true; otherwise leave the position unchanged and
3058 | /// return false.
3059 | mutating func conditional(string: String) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3060 | var checkOffset = offset
3061 | for utf8Byte in string.utf8 {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3074:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3072 | /// and return true; otherwise leave the position unchanged and return
3073 | /// false.
3074 | mutating func conditional(scalar: UnicodeScalar) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3075 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3076 | return false
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3084:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3082 | /// If `test` accepts the scalar at the current position, advance over it
3083 | /// and return it; otherwise leave the position unchanged and return nil.
3084 | mutating func conditional(where test: (UnicodeScalar) -> Bool) -> UnicodeScalar? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3085 | guard offset < bytes.count else { return nil }
3086 | let candidate = UnicodeScalar(bytes[offset])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3094:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3092 | /// Advance the position by `count` bytes; throw without moving if fewer
3093 | /// remain.
3094 | mutating func skip(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3095 | guard count >= 0, count <= bytes.count - offset else {
3096 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3103:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3101 | /// Move the position back by `count` bytes; throw without moving if that
3102 | /// would pass the beginning.
3103 | mutating func backtrack(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3104 | guard count >= 0, count <= offset else {
3105 | throw DemanglingError.endedPrematurely(count: -count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3113:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3111 | /// returning them as a `String`. Throws without moving if `scalar` never
3112 | /// occurs.
3113 | mutating func readUntil(scalar: UnicodeScalar) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3114 | var searchOffset = offset
3115 | while searchOffset < bytes.count, UnicodeScalar(bytes[searchOffset]) != scalar {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3127:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3125 |
3126 | /// Consume bytes while `test` accepts them, returning the consumed range.
3127 | mutating func readRange(while test: (UnicodeScalar) -> Bool) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3128 | let startOffset = offset
3129 | while offset < bytes.count, test(UnicodeScalar(bytes[offset])) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3136:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3134 |
3135 | /// Consume bytes while `test` accepts them, returning them as a `String`.
3136 | mutating func readWhile(_ test: (UnicodeScalar) -> Bool) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3137 | materializeText(in: readRange(while: test))
3138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3142:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3140 | /// Consume exactly `count` bytes, returning the consumed range. Throws
3141 | /// without moving if fewer remain.
3142 | mutating func readRange(count: Int) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3143 | guard count >= 0, count <= bytes.count - offset else {
3144 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3155:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3153 | /// instead of trapping in an `Int` conversion — 32-bit `Int` included
3154 | /// (proposal 0004 discipline).
3155 | mutating func readRange(count: UInt64) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3156 | guard count <= UInt64(bytes.count - offset) else {
3157 | throw DemanglingError.endedPrematurely(count: Int(clamping: count), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3163:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3161 |
3162 | /// Consume exactly `count` bytes, returning them as a `String`.
3163 | mutating func readScalars(count: Int) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3164 | try materializeText(in: readRange(count: count))
3165 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3169:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3167 | /// `UInt64` counterpart of `readScalars(count:)` for mangled length
3168 | /// prefixes; see `readRange(count: UInt64)`.
3169 | mutating func readScalars(count: UInt64) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3170 | try materializeText(in: readRange(count: count))
3171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3473:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3471 | }
3472 |
3473 | mutating func demangleSwift3ProtocolNameGivenContext(context: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3474 | let name = try demangleSwift3DeclName()
3475 | let result = createNode(kind: .protocol, children: [context, name])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3491:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3489 | }
3490 |
3491 | mutating func demangleSwift3BoundGenericArgs(nominalType initialNominal: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3492 | guard var parentOrModule = initialNominal.children.first else { throw scanner.unexpectedError() }
3493 |
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3620:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3618 | }
3619 |
3620 | mutating func demangleSwift3DeclarationName(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3621 | let result = try createNode(kind: kind, children: [demangleSwift3Context(), demangleSwift3DeclName()])
3622 | nameStack.append(result)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3701:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3699 | }
3700 |
3701 | mutating func demangleSwift3GenericSignature(isPseudo: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3702 | var children = [Node]()
3703 | var c = try scanner.requirePeek()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3841:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3839 | }
3840 |
3841 | mutating func demangleSwift3DependentMemberTypeName(base: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3842 | let associatedType: Node
3843 | if scanner.conditional(scalar: "S") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4085:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4083 | }
4084 |
4085 | mutating func demangleSwift3ImplConvention(kind: Node.Kind) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4086 | let scalar = try scanner.readScalar()
4087 | switch (scalar, kind == .implErrorResult ? .implResult : kind) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4105:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4103 | }
4104 |
4105 | mutating func demangleSwift3ImplParameterOrResult(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4106 | var k: Node.Kind
4107 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4123:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4121 | }
4122 |
4123 | mutating func demangleSwift3Tuple(variadic: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4124 | var children = [Node]()
4125 | while !scanner.conditional(scalar: "_") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4140:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4138 | }
4139 |
4140 | mutating func demangleSwift3FunctionType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4141 | var children = [Node]()
4142 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4150:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4148 | }
4149 |
4150 | mutating func demangleSwift3Identifier(kind: Node.Kind? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4151 | let isPunycode = scanner.conditional(scalar: "X")
4152 | let k: Node.Kind
[792/816] Compiling Demangling TypeBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:60:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
58 |
59 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with one child.
60 | mutating func createNode(typeWithChildKind: Node.Kind, childChild: Node) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
61 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: [childChild])])
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:65:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
63 |
64 | /// Compound: `.type` wrapping a node of `typeWithChildKind` with children.
65 | mutating func createNode(typeWithChildKind: Node.Kind, childChildren: [Node]) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
66 | createNode(kind: .type, children: [createNode(kind: typeWithChildKind, children: childChildren)])
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:70:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
68 |
69 | /// Compound: Swift stdlib type (`.type` > `kind` > [`.module("Swift")`, `.identifier(name)`]).
70 | mutating func createNode(swiftStdlibTypeKind: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
71 | createNode(kind: .type, children: [createNode(kind: swiftStdlibTypeKind, children: [
72 | createNode(kind: .module, text: stdlibName),
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler+NodeCreation.swift:78:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
76 |
77 | /// Compound: Swift builtin type (`.type` > `kind(name)`).
78 | mutating func createNode(swiftBuiltinType: Node.Kind, name: String) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
79 | createNode(kind: .type, children: [createNode(kind: swiftBuiltinType, text: name)])
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:46:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
44 | // `demangler-self-copy`.) The one visible difference: a failure reports
45 | // the scanner position after the argument was evaluated, not before.
46 | private mutating func require<Wrapped>(_ optional: Wrapped?) throws(DemanglingError) -> Wrapped {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
47 | if let optional {
48 | return optional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:54:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
52 | }
53 |
54 | private mutating func require(_ value: Bool) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
55 | if !value {
56 | throw failure
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:155:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
153 | }
154 |
155 | private mutating func demangleSymbolicReference(rawValue: UInt8) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
156 | guard let (kind, directness) = SymbolicReference.symbolicReference(for: rawValue) else {
157 | throw DemanglingError.requiredNonOptional
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:362:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
360 | }
361 |
362 | private mutating func pushMultiSubstitutions(repeatCount: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
363 | try require(repeatCount <= maxRepeatCount)
364 | let nd = try require(substitutions.at(index))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:378:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
376 | }
377 |
378 | private mutating func pop(kind: Node.Kind) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
379 | return nameStack.last?.kind == kind ? pop() : nil
380 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:382:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
380 | }
381 |
382 | private mutating func pop(where cond: (Node.Kind) -> Bool) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
383 | return nameStack.last.map { cond($0.kind) } == true ? pop() : nil
384 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:386:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
384 | }
385 |
386 | private mutating func popFunctionType(kind: Node.Kind, hasClangType: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
387 | var children: [Node] = []
388 | if hasClangType {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:415:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
413 | }
414 |
415 | private mutating func popFunctionParams(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
416 | let paramsType: Node
417 | if pop(kind: .emptyList) != nil {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:425:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
423 | }
424 |
425 | private mutating func getLabel(params: Node, idx: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
426 | if isOldFunctionTypeMangling {
427 | let param = try require(params.children.at(idx))
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:436:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
434 | }
435 |
436 | private mutating func popFunctionParamLabels(type: Node) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
437 | if !isOldFunctionTypeMangling && pop(kind: .emptyList) != nil {
438 | return NodeFactory.labelList
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:533:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
531 | }
532 |
533 | private mutating func popPack(kind: Node.Kind = .pack) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
534 | if pop(kind: .emptyList) != nil {
535 | return createNode(kind: .type, child: NodeFactory.pack)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:774:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
772 | }
773 |
774 | private mutating func getDependentGenericParamType(depth: Int, index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
775 | try require(depth >= 0 && index >= 0)
776 | var charIndex = index
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1084:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1082 | }
1083 |
1084 | private mutating func demangleAnyGenericType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1085 | let name = try require(pop(where: { $0.isDeclName }))
1086 | let ctx = try popContext()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1256:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1254 | }
1255 |
1256 | private mutating func demangleBoundGenericArgs(nominal: Node, array: [Node], index: Int) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1257 | if nominal.kind == .typeSymbolicReference || nominal.kind == .protocolSymbolicReference {
1258 | let remaining = array.reversed().flatMap { $0.children }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1324:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1322 | }
1323 |
1324 | private mutating func demangleImplParamConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1325 | let attr: String
1326 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1347:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1345 | }
1346 |
1347 | private mutating func demangleImplResultConvention(kind: Node.Kind) throws(DemanglingError) -> Node? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1348 | let attr: String
1349 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1681:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1679 | }
1680 |
1681 | private mutating func demangleAssociatedTypeSimple(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1682 | do {
1683 | let atName = try popAssociatedTypeName()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1691:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1689 | }
1690 |
1691 | private mutating func demangleAssociatedTypeCompound(index: Node?) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1692 | do {
1693 | var assocTypeNames = [Node]()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:1928:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1926 | }
1927 |
1928 | private mutating func demangleAutoDiffFunctionOrSimpleThunk(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
1929 | var children: [Node] = []
1930 | while let node = pop() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2046:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2044 | }
2045 |
2046 | private mutating func demangleGenericSpecialization(kind: Node.Kind, droppedArguments: Node? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2047 | var spec = try demangleSpecAttributes(kind: kind)
2048 | if let droppedArguments {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2136:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2134 | }
2135 |
2136 | private mutating func demangleFuncSpecParam(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2137 | var children: [Node] = []
2138 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2241:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2239 | }
2240 |
2241 | private mutating func addFuncSpecParamNumber(param: Node, kind: FunctionSigSpecializationParamKind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2242 | let kindChild = createNode(kind: .functionSignatureSpecializationParamKind, contents: .index(kind.rawValue))
2243 | let str = scanner.readWhile { $0.isDigit }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2263:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2261 | }
2262 |
2263 | private mutating func demangleSpecAttributes(kind: Node.Kind, demangleUniqueId: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2264 | let isSerialized = scanner.conditional(scalar: "q")
2265 | let asyncRemoved = scanner.conditional(scalar: "a")
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2535:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2533 | }
2534 |
2535 | private mutating func demangleExtendedExistentialShape(nodeKind: UnicodeScalar) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2536 | let type = try require(pop(kind: .type))
2537 | var genSig: Node?
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2559:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2557 | }
2558 |
2559 | private mutating func demangleAccessor(child: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2560 | let kind: Node.Kind
2561 | switch try scanner.readScalar() {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2645:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2643 | }
2644 |
2645 | private mutating func demangleEntity(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2646 | let type = try require(pop(kind: .type))
2647 | let labelList = try popFunctionParamLabels(type: type)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:2718:27: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2716 | }
2717 |
2718 | private mutating func demangleGenericSignature(hasParamCounts: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
2719 | var paramCounts: [Node] = []
2720 | if hasParamCounts {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3030:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3028 | /// Throw unless `test` accepts the scalar at the current position; on
3029 | /// success return it and advance.
3030 | mutating func read(where test: (UnicodeScalar) -> Bool) throws(DemanglingError) -> UnicodeScalar {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3031 | guard offset < bytes.count, test(UnicodeScalar(bytes[offset])) else {
3032 | throw DemanglingError.matchFailed(wanted: "(read test function to succeed)", at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3041:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3039 | /// Throw unless the scalar at the current position equals `scalar`;
3040 | /// advance over it on success.
3041 | mutating func match(scalar: UnicodeScalar) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3042 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3043 | throw DemanglingError.matchFailed(wanted: String(scalar), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3050:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3048 | /// Throw unless the bytes at the current position match `string`'s UTF-8;
3049 | /// advance to the end of the match on success.
3050 | mutating func match(string: String) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3051 | guard conditional(string: string) else {
3052 | throw DemanglingError.matchFailed(wanted: string, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3059:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3057 | /// over them and return true; otherwise leave the position unchanged and
3058 | /// return false.
3059 | mutating func conditional(string: String) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3060 | var checkOffset = offset
3061 | for utf8Byte in string.utf8 {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3074:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3072 | /// and return true; otherwise leave the position unchanged and return
3073 | /// false.
3074 | mutating func conditional(scalar: UnicodeScalar) -> Bool {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3075 | guard offset < bytes.count, UnicodeScalar(bytes[offset]) == scalar else {
3076 | return false
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3084:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3082 | /// If `test` accepts the scalar at the current position, advance over it
3083 | /// and return it; otherwise leave the position unchanged and return nil.
3084 | mutating func conditional(where test: (UnicodeScalar) -> Bool) -> UnicodeScalar? {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3085 | guard offset < bytes.count else { return nil }
3086 | let candidate = UnicodeScalar(bytes[offset])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3094:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3092 | /// Advance the position by `count` bytes; throw without moving if fewer
3093 | /// remain.
3094 | mutating func skip(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3095 | guard count >= 0, count <= bytes.count - offset else {
3096 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3103:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3101 | /// Move the position back by `count` bytes; throw without moving if that
3102 | /// would pass the beginning.
3103 | mutating func backtrack(count: Int = 1) throws(DemanglingError) {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3104 | guard count >= 0, count <= offset else {
3105 | throw DemanglingError.endedPrematurely(count: -count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3113:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3111 | /// returning them as a `String`. Throws without moving if `scalar` never
3112 | /// occurs.
3113 | mutating func readUntil(scalar: UnicodeScalar) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3114 | var searchOffset = offset
3115 | while searchOffset < bytes.count, UnicodeScalar(bytes[searchOffset]) != scalar {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3127:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3125 |
3126 | /// Consume bytes while `test` accepts them, returning the consumed range.
3127 | mutating func readRange(while test: (UnicodeScalar) -> Bool) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3128 | let startOffset = offset
3129 | while offset < bytes.count, test(UnicodeScalar(bytes[offset])) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3136:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3134 |
3135 | /// Consume bytes while `test` accepts them, returning them as a `String`.
3136 | mutating func readWhile(_ test: (UnicodeScalar) -> Bool) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3137 | materializeText(in: readRange(while: test))
3138 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3142:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3140 | /// Consume exactly `count` bytes, returning the consumed range. Throws
3141 | /// without moving if fewer remain.
3142 | mutating func readRange(count: Int) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3143 | guard count >= 0, count <= bytes.count - offset else {
3144 | throw DemanglingError.endedPrematurely(count: count, at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3155:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3153 | /// instead of trapping in an `Int` conversion — 32-bit `Int` included
3154 | /// (proposal 0004 discipline).
3155 | mutating func readRange(count: UInt64) throws(DemanglingError) -> Range<Int> {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3156 | guard count <= UInt64(bytes.count - offset) else {
3157 | throw DemanglingError.endedPrematurely(count: Int(clamping: count), at: offset)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3163:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3161 |
3162 | /// Consume exactly `count` bytes, returning them as a `String`.
3163 | mutating func readScalars(count: Int) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3164 | try materializeText(in: readRange(count: count))
3165 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3169:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3167 | /// `UInt64` counterpart of `readScalars(count:)` for mangled length
3168 | /// prefixes; see `readRange(count: UInt64)`.
3169 | mutating func readScalars(count: UInt64) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3170 | try materializeText(in: readRange(count: count))
3171 | }
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3473:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3471 | }
3472 |
3473 | mutating func demangleSwift3ProtocolNameGivenContext(context: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3474 | let name = try demangleSwift3DeclName()
3475 | let result = createNode(kind: .protocol, children: [context, name])
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3491:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3489 | }
3490 |
3491 | mutating func demangleSwift3BoundGenericArgs(nominalType initialNominal: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3492 | guard var parentOrModule = initialNominal.children.first else { throw scanner.unexpectedError() }
3493 |
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3620:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3618 | }
3619 |
3620 | mutating func demangleSwift3DeclarationName(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3621 | let result = try createNode(kind: kind, children: [demangleSwift3Context(), demangleSwift3DeclName()])
3622 | nameStack.append(result)
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3701:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3699 | }
3700 |
3701 | mutating func demangleSwift3GenericSignature(isPseudo: Bool = false) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3702 | var children = [Node]()
3703 | var c = try scanner.requirePeek()
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:3841:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3839 | }
3840 |
3841 | mutating func demangleSwift3DependentMemberTypeName(base: Node) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
3842 | let associatedType: Node
3843 | if scanner.conditional(scalar: "S") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4085:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4083 | }
4084 |
4085 | mutating func demangleSwift3ImplConvention(kind: Node.Kind) throws(DemanglingError) -> String {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4086 | let scalar = try scanner.readScalar()
4087 | switch (scalar, kind == .implErrorResult ? .implResult : kind) {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4105:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4103 | }
4104 |
4105 | mutating func demangleSwift3ImplParameterOrResult(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4106 | var k: Node.Kind
4107 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4123:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4121 | }
4122 |
4123 | mutating func demangleSwift3Tuple(variadic: Bool) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4124 | var children = [Node]()
4125 | while !scanner.conditional(scalar: "_") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4140:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4138 | }
4139 |
4140 | mutating func demangleSwift3FunctionType(kind: Node.Kind) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4141 | var children = [Node]()
4142 | if scanner.conditional(scalar: "z") {
/Users/admin/builder/spi-builder-workspace/Sources/Demangling/Main/Demangle/Demangler.swift:4150:19: error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4148 | }
4149 |
4150 | mutating func demangleSwift3Identifier(kind: Node.Kind? = nil) throws(DemanglingError) -> Node {
| `- error: a mutating method with a ~Escapable 'self' requires '@_lifetime(self: ...)'
4151 | let isPunycode = scanner.conditional(scalar: "X")
4152 | let k: Node.Kind
[793/816] Compiling Demangling Node+Hashable.swift
[794/816] Compiling Demangling Node+Init.swift
[795/816] Compiling Demangling Node+Kind.swift
[796/816] Compiling Demangling Node+Rewriter.swift
[797/816] Compiling Demangling Node+Sequence.swift
[798/816] Compiling Demangling Node.swift
[799/816] Compiling Demangling SymbolicReference.swift
[800/816] Compiling Demangling TypePrinting.swift
[801/816] Compiling Demangling ValueWitnessKind.swift
[802/816] Compiling Demangling DemangleInterface.swift
[803/816] Compiling Demangling DemangleOptions.swift
[804/816] Compiling Demangling DemangleSymbolicReferenceResolver.swift
[805/816] Compiling Demangling TypeDecoder+Types.swift
[806/816] Compiling Demangling TypeDecoder.swift
[807/816] Compiling Demangling TypeLookupError.swift
[808/816] Compiling Demangling Node+Children.swift
[809/816] Compiling Demangling Node+Conversions.swift
[810/816] Compiling Demangling Node+CustomStringConvertible.swift
[811/816] Compiling Demangling NodeFactory.swift
[812/816] Compiling Demangling NodePrintContext.swift
[813/816] Compiling Demangling NodePrintState.swift
[814/816] Compiling Demangling NodePrinter.swift
[815/816] Compiling Demangling NodePrinterTarget.swift
[816/816] Compiling Demangling CompactNode.swift
Fetching https://github.com/Mx-Iris/FrameworkToolbox
Fetching https://github.com/MxIris-Reverse-Engineering/MachOKit
[1/8023] Fetching machokit
[2/10740] Fetching machokit, frameworktoolbox
Fetched https://github.com/Mx-Iris/FrameworkToolbox from cache (1.93s)
Fetched https://github.com/MxIris-Reverse-Engineering/MachOKit from cache (1.93s)
Computing version for https://github.com/MxIris-Reverse-Engineering/MachOKit
Computed https://github.com/MxIris-Reverse-Engineering/MachOKit at 0.55.102 (2.56s)
Fetching https://github.com/p-x9/swift-fileio.git
Fetching https://github.com/p-x9/swift-binary-parse-support.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/p-x9/swift-fileio-extra.git
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/p-x9/ObjectArchiveKit.git
[1/2065] Fetching swift-asn1
[2/2324] Fetching swift-asn1, objectarchivekit
[116/2580] Fetching swift-asn1, objectarchivekit, swift-binary-parse-support
[262/3270] Fetching swift-asn1, objectarchivekit, swift-binary-parse-support, swift-fileio
[290/3361] Fetching swift-asn1, objectarchivekit, swift-binary-parse-support, swift-fileio, swift-fileio-extra
[395/22285] Fetching swift-asn1, objectarchivekit, swift-binary-parse-support, swift-fileio, swift-fileio-extra, swift-crypto
Fetched https://github.com/p-x9/swift-binary-parse-support.git from cache (0.99s)
Fetched https://github.com/p-x9/swift-fileio.git from cache (0.99s)
[1473/21339] Fetching swift-asn1, objectarchivekit, swift-fileio-extra, swift-crypto
Fetched https://github.com/p-x9/ObjectArchiveKit.git from cache (3.44s)
Fetched https://github.com/p-x9/swift-fileio-extra.git from cache (3.44s)
Fetched https://github.com/apple/swift-asn1.git from cache (3.44s)
Fetched https://github.com/apple/swift-crypto.git from cache (3.44s)
Computing version for https://github.com/p-x9/ObjectArchiveKit.git
Computed https://github.com/p-x9/ObjectArchiveKit.git at 0.5.0 (4.12s)
Computing version for https://github.com/p-x9/swift-binary-parse-support.git
Computed https://github.com/p-x9/swift-binary-parse-support.git at 0.3.0 (0.54s)
Computing version for https://github.com/p-x9/swift-fileio-extra.git
Computed https://github.com/p-x9/swift-fileio-extra.git at 0.4.0 (0.57s)
Computing version for https://github.com/p-x9/swift-fileio.git
Computed https://github.com/p-x9/swift-fileio.git at 0.15.1 (0.54s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.6.0 (0.66s)
Computing version for https://github.com/Mx-Iris/FrameworkToolbox
Computed https://github.com/Mx-Iris/FrameworkToolbox at 0.18.0 (0.65s)
Fetching https://github.com/swiftlang/swift-syntax.git
[1/81958] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (22.35s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 603.0.2 (24.77s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.3.1 (0.94s)
Creating working copy for https://github.com/p-x9/swift-fileio-extra.git
Working copy of https://github.com/p-x9/swift-fileio-extra.git resolved at 0.4.0
Creating working copy for https://github.com/p-x9/ObjectArchiveKit.git
Working copy of https://github.com/p-x9/ObjectArchiveKit.git resolved at 0.5.0
Creating working copy for https://github.com/MxIris-Reverse-Engineering/MachOKit
Working copy of https://github.com/MxIris-Reverse-Engineering/MachOKit resolved at 0.55.102
Creating working copy for https://github.com/p-x9/swift-fileio.git
Working copy of https://github.com/p-x9/swift-fileio.git resolved at 0.15.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.6.0
Creating working copy for https://github.com/p-x9/swift-binary-parse-support.git
Working copy of https://github.com/p-x9/swift-binary-parse-support.git resolved at 0.3.0
Creating working copy for https://github.com/Mx-Iris/FrameworkToolbox
Working copy of https://github.com/Mx-Iris/FrameworkToolbox resolved at 0.18.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.3.1
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 603.0.2
BUILD FAILURE 6.2 macosSpm