The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build extract-case-value, reference 0.0.2 (a3e2a8), with Swift 6.0 for Linux on 3 Nov 2024 06:18:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fruitcoder/extract-case-value.git
Reference: 0.0.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/fruitcoder/extract-case-value
 * tag               0.0.2      -> FETCH_HEAD
HEAD is now at a3e2a89 Add .spi.yml for swift package index
Cloned https://github.com/fruitcoder/extract-case-value.git
Revision (git rev-parse @):
a3e2a89810b27983c4fdd7451c1e55583d519d8b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/fruitcoder/extract-case-value.git at 0.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/fruitcoder/extract-case-value.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-syntax.git
[1/66399] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (4.30s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (1.89s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Building for debugging...
[0/35] Write sources
[15/35] Write swift-version-24593BA9C3E375BF.txt
[17/37] Emitting module SwiftSyntax509
[18/37] Compiling SwiftSyntax509 Empty.swift
[19/38] Wrapping AST for SwiftSyntax509 for debugging
[21/83] Compiling SwiftSyntax AbsolutePosition.swift
[22/83] Compiling SwiftSyntax Assert.swift
[23/83] Compiling SwiftSyntax BumpPtrAllocator.swift
[24/83] Compiling SwiftSyntax CommonAncestor.swift
[25/83] Compiling SwiftSyntax Convenience.swift
[26/83] Compiling SwiftSyntax MemoryLayout.swift
[27/83] Compiling SwiftSyntax MissingNodeInitializers.swift
[28/89] Compiling SwiftSyntax RawSyntax.swift
[29/89] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[30/89] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[31/89] Compiling SwiftSyntax RawSyntaxTokenView.swift
[32/89] Compiling SwiftSyntax SourceLength.swift
[33/89] Compiling SwiftSyntax SourceLocation.swift
[34/89] Compiling SwiftSyntax SourcePresence.swift
[35/89] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[36/89] Compiling SwiftSyntax Syntax.swift
[37/89] Compiling SwiftSyntax SyntaxArena.swift
[38/89] Compiling SwiftSyntax SyntaxChildren.swift
[39/89] Compiling SwiftSyntax SyntaxCollection.swift
[40/89] Compiling SwiftSyntax SyntaxData.swift
[41/89] Emitting module SwiftSyntax
[42/89] Compiling SwiftSyntax ChildNameForKeyPath.swift
[43/89] Compiling SwiftSyntax Keyword.swift
[44/89] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[45/89] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[46/89] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[47/89] Compiling SwiftSyntax SyntaxBaseNodes.swift
[48/89] Compiling SwiftSyntax SyntaxDeclNodes.swift
[49/89] Compiling SwiftSyntax SyntaxExprNodes.swift
[50/89] Compiling SwiftSyntax SyntaxNodes.swift
[51/89] Compiling SwiftSyntax SyntaxPatternNodes.swift
[52/89] Compiling SwiftSyntax SyntaxStmtNodes.swift
[53/89] Compiling SwiftSyntax SyntaxTypeNodes.swift
[54/89] Compiling SwiftSyntax SyntaxText.swift
[55/89] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[56/89] Compiling SwiftSyntax TokenDiagnostic.swift
[57/89] Compiling SwiftSyntax TokenSyntax.swift
[58/89] Compiling SwiftSyntax Trivia.swift
[59/89] Compiling SwiftSyntax Utils.swift
[60/89] Compiling SwiftSyntax SyntaxCollections.swift
[61/89] Compiling SwiftSyntax SyntaxEnum.swift
[62/89] Compiling SwiftSyntax SyntaxKind.swift
[63/89] Compiling SwiftSyntax SyntaxRewriter.swift
[64/89] Compiling SwiftSyntax SyntaxTraits.swift
[65/89] Compiling SwiftSyntax SyntaxTransform.swift
[66/89] Compiling SwiftSyntax SyntaxVisitor.swift
[67/89] Compiling SwiftSyntax TokenKind.swift
[68/89] Compiling SwiftSyntax Tokens.swift
[69/89] Compiling SwiftSyntax TriviaPieces.swift
[70/89] Compiling SwiftSyntax RawSyntaxNodes.swift
[71/89] Compiling SwiftSyntax RawSyntaxValidation.swift
[72/91] Wrapping AST for SwiftSyntax for debugging
[74/141] Compiling SwiftBasicFormat Syntax+Extensions.swift
[75/141] Compiling SwiftDiagnostics Note.swift
[76/141] Emitting module SwiftDiagnostics
[77/141] Compiling SwiftDiagnostics Diagnostic.swift
[78/141] Compiling SwiftDiagnostics Message.swift
[79/141] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[80/141] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[81/141] Emitting module SwiftBasicFormat
[82/141] Compiling SwiftDiagnostics FixIt.swift
[83/141] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[84/141] Compiling SwiftBasicFormat BasicFormat.swift
[85/142] Compiling SwiftDiagnostics Convenience.swift
[86/142] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[88/143] Wrapping AST for SwiftBasicFormat for debugging
[89/143] Wrapping AST for SwiftDiagnostics for debugging
[91/143] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[92/143] Compiling SwiftParser StringLiterals.swift
[93/143] Compiling SwiftParser SwiftParserCompatibility.swift
[94/143] Compiling SwiftParser SyntaxUtils.swift
[95/143] Compiling SwiftParser TokenConsumer.swift
[96/143] Compiling SwiftParser TokenPrecedence.swift
[97/143] Compiling SwiftParser TokenSpec.swift
[98/143] Compiling SwiftParser TokenSpecSet.swift
[99/143] Compiling SwiftParser TopLevel.swift
[100/143] Compiling SwiftParser TriviaParser.swift
[101/148] Emitting module SwiftParser
[102/148] Compiling SwiftParser Modifiers.swift
[103/148] Compiling SwiftParser Names.swift
[104/148] Compiling SwiftParser Nominals.swift
[105/148] Compiling SwiftParser Parameters.swift
[106/148] Compiling SwiftParser ParseSourceFile.swift
[107/148] Compiling SwiftParser Parser.swift
[108/148] Compiling SwiftParser Patterns.swift
[109/148] Compiling SwiftParser Recovery.swift
[110/148] Compiling SwiftParser Specifiers.swift
[111/148] Compiling SwiftParser Statements.swift
[112/148] Compiling SwiftParser Attributes.swift
[113/148] Compiling SwiftParser Availability.swift
[114/148] Compiling SwiftParser CharacterInfo.swift
[115/148] Compiling SwiftParser CollectionNodes+Parsable.swift
[116/148] Compiling SwiftParser Declarations.swift
[117/148] Compiling SwiftParser Directives.swift
[118/148] Compiling SwiftParser Lexer.swift
[119/148] Compiling SwiftParser RegexLiteralLexer.swift
[120/148] Compiling SwiftParser UnicodeScalarExtensions.swift
[121/148] Compiling SwiftParser Lookahead.swift
[122/148] Compiling SwiftParser LoopProgressCondition.swift
[123/148] Compiling SwiftParser ExperimentalFeatures.swift
[124/148] Compiling SwiftParser Expressions.swift
[125/148] Compiling SwiftParser IncrementalParseTransition.swift
[126/148] Compiling SwiftParser Cursor.swift
[127/148] Compiling SwiftParser Lexeme.swift
[128/148] Compiling SwiftParser LexemeSequence.swift
[129/148] Compiling SwiftParser Types.swift
[130/148] Compiling SwiftParser IsLexerClassified.swift
[131/148] Compiling SwiftParser LayoutNodes+Parsable.swift
[132/148] Compiling SwiftParser Parser+TokenSpecSet.swift
[133/148] Compiling SwiftParser TokenSpecStaticMembers.swift
[134/149] Wrapping AST for SwiftParser for debugging
[136/172] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[137/173] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[138/173] Compiling SwiftOperators PrecedenceGroup.swift
[139/173] Compiling SwiftOperators PrecedenceGraph.swift
[140/174] Compiling SwiftOperators OperatorError.swift
[141/174] Compiling SwiftOperators OperatorTable+Defaults.swift
[142/174] Compiling SwiftOperators Operator.swift
[143/174] Compiling SwiftOperators OperatorError+Diagnostics.swift
[144/174] Compiling SwiftOperators OperatorTable+Folding.swift
[145/174] Compiling SwiftOperators SyntaxSynthesis.swift
[146/174] Emitting module SwiftOperators
[147/174] Compiling SwiftOperators OperatorTable.swift
[148/174] Compiling SwiftOperators OperatorTable+Semantics.swift
[150/175] Emitting module SwiftParserDiagnostics
[150/175] Wrapping AST for SwiftOperators for debugging
[152/175] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[153/175] Compiling SwiftParserDiagnostics Utils.swift
[154/175] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[157/175] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[158/175] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[161/175] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[162/175] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[163/176] Wrapping AST for SwiftParserDiagnostics for debugging
[165/190] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[166/190] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[167/191] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[168/191] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[169/191] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[170/191] Compiling SwiftSyntaxBuilder Indenter.swift
[171/191] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[172/191] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[173/191] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[174/191] Emitting module SwiftSyntaxBuilder
[175/191] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[176/191] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[177/191] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[178/191] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[179/191] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[180/192] Wrapping AST for SwiftSyntaxBuilder for debugging
[182/206] Compiling SwiftSyntaxMacros AccessorMacro.swift
[183/206] Compiling SwiftSyntaxMacros AttachedMacro.swift
[184/207] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[185/207] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[186/207] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[187/207] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[188/207] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[189/207] Compiling SwiftSyntaxMacros Macro+Format.swift
[190/207] Compiling SwiftSyntaxMacros Macro.swift
[191/207] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[192/207] Compiling SwiftSyntaxMacros MemberMacro.swift
[193/207] Compiling SwiftSyntaxMacros PeerMacro.swift
[194/207] Emitting module SwiftSyntaxMacros
[195/207] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[196/207] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[197/208] Wrapping AST for SwiftSyntaxMacros for debugging
[199/216] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[200/216] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[201/216] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[202/216] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[203/216] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[204/216] Emitting module SwiftSyntaxMacroExpansion
[205/216] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[206/216] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[207/217] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[209/224] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[210/224] Emitting module SwiftCompilerPluginMessageHandling
[211/224] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[212/224] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[213/224] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[214/224] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[215/224] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[216/225] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[218/227] Emitting module SwiftCompilerPlugin
[219/227] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[220/228] Wrapping AST for SwiftCompilerPlugin for debugging
[222/234] Compiling ExtractCaseValueMacros SwiftSyntax+Extensions.swift
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/SwiftSyntax+Extensions.swift:32:11: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
30 | }
31 |
32 | extension TupleExprElementListSyntax {
   |           |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
   |           `- note: use 'LabeledExprListSyntax' instead
33 |   /// Retrieve the first element with the given label.
34 |   func first(labeled name: String) -> Element? {
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/SwiftSyntax+Extensions.swift:16:34: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
14 | extension TypeSyntax {
15 |   func matchesReturnType(_ type: TypeSyntax) -> Bool {
16 |     guard let typeName = self.as(SimpleTypeIdentifierSyntax.self)?.name.text else { return false }
   |                                  |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
   |                                  `- note: use 'IdentifierTypeSyntax' instead
17 |
18 |     return typeName == type.as(SimpleTypeIdentifierSyntax.self)?.name.text ||
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/SwiftSyntax+Extensions.swift:18:32: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
16 |     guard let typeName = self.as(SimpleTypeIdentifierSyntax.self)?.name.text else { return false }
17 |
18 |     return typeName == type.as(SimpleTypeIdentifierSyntax.self)?.name.text ||
   |                                |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
   |                                `- note: use 'IdentifierTypeSyntax' instead
19 |     typeName == type.as(OptionalTypeSyntax.self)?.wrappedType.as(SimpleTypeIdentifierSyntax.self)!.name.text
20 |   }
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/SwiftSyntax+Extensions.swift:19:66: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
17 |
18 |     return typeName == type.as(SimpleTypeIdentifierSyntax.self)?.name.text ||
19 |     typeName == type.as(OptionalTypeSyntax.self)?.wrappedType.as(SimpleTypeIdentifierSyntax.self)!.name.text
   |                                                                  |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
   |                                                                  `- note: use 'IdentifierTypeSyntax' instead
20 |   }
21 | }
[223/234] Compiling ExtractCaseValueMacros Plugin.swift
[224/234] Compiling ExtractCaseValueMacros CaseExtractionKind.swift
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/CaseExtractionKind.swift:14:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CaseExtractionKind' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// The available kinds of case value extractions.
 4 | public enum CaseExtractionKind {
   |             `- note: consider making enum 'CaseExtractionKind' conform to the 'Sendable' protocol
 5 |   /// Extract a value at a position in the associated values.
 6 |   case position(Int)
   :
12 |   case firstMatchingType
13 |
14 |   public static let `default` = Self.firstMatchingType
   |                     |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CaseExtractionKind' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | }
16 |
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/CaseExtractionKind.swift:24:42: warning: 'argumentList' is deprecated: renamed to 'arguments'
22 |     else { return nil }
23 |
24 |     let firstIntArgument = (functionCall.argumentList.first?.expression.as(IntegerLiteralExprSyntax.self)?.digits.text).flatMap(Int.init)
   |                                          |- warning: 'argumentList' is deprecated: renamed to 'arguments'
   |                                          `- note: use 'arguments' instead
25 |     let firstStringArgument = functionCall.argumentList.first?.expression.stringLiteralSegment
26 |
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/CaseExtractionKind.swift:24:108: warning: 'digits' is deprecated: renamed to 'literal'
22 |     else { return nil }
23 |
24 |     let firstIntArgument = (functionCall.argumentList.first?.expression.as(IntegerLiteralExprSyntax.self)?.digits.text).flatMap(Int.init)
   |                                                                                                            |- warning: 'digits' is deprecated: renamed to 'literal'
   |                                                                                                            `- note: use 'literal' instead
25 |     let firstStringArgument = functionCall.argumentList.first?.expression.stringLiteralSegment
26 |
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/CaseExtractionKind.swift:25:44: warning: 'argumentList' is deprecated: renamed to 'arguments'
23 |
24 |     let firstIntArgument = (functionCall.argumentList.first?.expression.as(IntegerLiteralExprSyntax.self)?.digits.text).flatMap(Int.init)
25 |     let firstStringArgument = functionCall.argumentList.first?.expression.stringLiteralSegment
   |                                            |- warning: 'argumentList' is deprecated: renamed to 'arguments'
   |                                            `- note: use 'arguments' instead
26 |
27 |     switch memberAccessExpr.name.text {
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/CaseExtractionKind.swift:27:29: warning: 'name' is deprecated: renamed to 'declName.baseName'
25 |     let firstStringArgument = functionCall.argumentList.first?.expression.stringLiteralSegment
26 |
27 |     switch memberAccessExpr.name.text {
   |                             |- warning: 'name' is deprecated: renamed to 'declName.baseName'
   |                             `- note: use 'declName.baseName' instead
28 |     case "position" :
29 |       guard let position = firstIntArgument else { return nil }
[225/234] Emitting module ExtractCaseValueMacros
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/CaseExtractionKind.swift:14:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CaseExtractionKind' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// The available kinds of case value extractions.
 4 | public enum CaseExtractionKind {
   |             `- note: consider making enum 'CaseExtractionKind' conform to the 'Sendable' protocol
 5 |   /// Extract a value at a position in the associated values.
 6 |   case position(Int)
   :
12 |   case firstMatchingType
13 |
14 |   public static let `default` = Self.firstMatchingType
   |                     |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CaseExtractionKind' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | }
16 |
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:13:5: warning: let 'defaultExtractionKind' is not concurrency-safe because non-'Sendable' type 'CaseExtractionKind' may have shared mutable state; this is an error in the Swift 6 language mode
 11 |
 12 | // default values
 13 | let defaultExtractionKind = CaseExtractionKind.default
    |     |- warning: let 'defaultExtractionKind' is not concurrency-safe because non-'Sendable' type 'CaseExtractionKind' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'defaultExtractionKind' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 | public struct ExtractCaseValueMacro {}
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/CaseExtractionKind.swift:4:13: note: consider making enum 'CaseExtractionKind' conform to the 'Sendable' protocol
 2 |
 3 | /// The available kinds of case value extractions.
 4 | public enum CaseExtractionKind {
   |             `- note: consider making enum 'CaseExtractionKind' conform to the 'Sendable' protocol
 5 |   /// Extract a value at a position in the associated values.
 6 |   case position(Int)
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/SwiftSyntax+Extensions.swift:32:11: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
30 | }
31 |
32 | extension TupleExprElementListSyntax {
   |           |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
   |           `- note: use 'LabeledExprListSyntax' instead
33 |   /// Retrieve the first element with the given label.
34 |   func first(labeled name: String) -> Element? {
[226/234] Compiling ExtractCaseValueMacros Diagnostics.swift
[227/234] Compiling ExtractCaseValueMacros ExtractCaseValueMacro.swift
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:13:5: warning: let 'defaultExtractionKind' is not concurrency-safe because non-'Sendable' type 'CaseExtractionKind' may have shared mutable state; this is an error in the Swift 6 language mode
 11 |
 12 | // default values
 13 | let defaultExtractionKind = CaseExtractionKind.default
    |     |- warning: let 'defaultExtractionKind' is not concurrency-safe because non-'Sendable' type 'CaseExtractionKind' may have shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: annotate 'defaultExtractionKind' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 14 |
 15 | public struct ExtractCaseValueMacro {}
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/CaseExtractionKind.swift:4:13: note: consider making enum 'CaseExtractionKind' conform to the 'Sendable' protocol
 2 |
 3 | /// The available kinds of case value extractions.
 4 | public enum CaseExtractionKind {
   |             `- note: consider making enum 'CaseExtractionKind' conform to the 'Sendable' protocol
 5 |   /// Extract a value at a position in the associated values.
 6 |   case position(Int)
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/CaseExtractionKind.swift:14:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CaseExtractionKind' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// The available kinds of case value extractions.
 4 | public enum CaseExtractionKind {
   |             `- note: consider making enum 'CaseExtractionKind' conform to the 'Sendable' protocol
 5 |   /// Extract a value at a position in the associated values.
 6 |   case position(Int)
   :
12 |   case firstMatchingType
13 |
14 |   public static let `default` = Self.firstMatchingType
   |                     |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'CaseExtractionKind' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | }
16 |
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:30:33: warning: 'argument' is deprecated: renamed to 'arguments'
 28 |
 29 |     guard
 30 |       let arguments = attribute.argument,
    |                                 |- warning: 'argument' is deprecated: renamed to 'arguments'
    |                                 `- note: use 'arguments' instead
 31 |       case let .argumentList(arguments) = arguments
 32 |     else {
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:62:27: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
 60 |     guard
 61 |       let returnType = attribute
 62 |         .attributeName.as(SimpleTypeIdentifierSyntax.self)?
    |                           |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax'
    |                           `- note: use 'IdentifierTypeSyntax' instead
 63 |         .genericArgumentClause?
 64 |         .arguments.first?
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:65:10: warning: 'argumentType' is deprecated: renamed to 'argument'
 63 |         .genericArgumentClause?
 64 |         .arguments.first?
 65 |         .argumentType
    |          |- warning: 'argumentType' is deprecated: renamed to 'argument'
    |          `- note: use 'argument' instead
 66 |     else {
 67 |       context.diagnose(ExtractCaseValueMacroDiagnostic.requiresGenericType.diagnose(at: attribute))
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:86:33: warning: 'argument' is deprecated: renamed to 'arguments'
 84 |     // create fix-it to add a default value if necessary
 85 |     guard
 86 |       let tupleList = attribute.argument?.as(TupleExprElementListSyntax.self)
    |                                 |- warning: 'argument' is deprecated: renamed to 'arguments'
    |                                 `- note: use 'arguments' instead
 87 |     else { return [] }
 88 |     let expr: ExprSyntax = ", \(propertyNameString): <#Type#>"
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:86:46: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
 84 |     // create fix-it to add a default value if necessary
 85 |     guard
 86 |       let tupleList = attribute.argument?.as(TupleExprElementListSyntax.self)
    |                                              |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax'
    |                                              `- note: use 'LabeledExprListSyntax' instead
 87 |     else { return [] }
 88 |     let expr: ExprSyntax = ", \(propertyNameString): <#Type#>"
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:89:34: warning: 'inserting(_:at:)' is deprecated: Create a new array of elements and construct a new collection type from those elements
 87 |     else { return [] }
 88 |     let expr: ExprSyntax = ", \(propertyNameString): <#Type#>"
 89 |     let newTupleList = tupleList.inserting(TupleExprElementSyntax(expression: expr), at: tupleList.count)
    |                                  `- warning: 'inserting(_:at:)' is deprecated: Create a new array of elements and construct a new collection type from those elements
 90 |
 91 |     let insertDefaultFixIt = FixIt(
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:89:44: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
 87 |     else { return [] }
 88 |     let expr: ExprSyntax = ", \(propertyNameString): <#Type#>"
 89 |     let newTupleList = tupleList.inserting(TupleExprElementSyntax(expression: expr), at: tupleList.count)
    |                                            |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax'
    |                                            `- note: use 'LabeledExprSyntax' instead
 90 |
 91 |     let insertDefaultFixIt = FixIt(
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:101:36: error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
 99 |
100 |     // infer access modifier from enum
101 |     let access = enumDecl.modifiers?.first(where: \.isNeededAccessLevelModifier)
    |                                    `- error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
102 |
103 |     var switchCaseSyntaxes: [SwitchCaseSyntax] = []
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:108:40: warning: 'associatedValue' is deprecated: renamed to 'parameterClause'
106 |       let caseSyntax = element.as(EnumCaseElementSyntax.self)!
107 |
108 |       guard let paramList = caseSyntax.associatedValue?.parameterList else {
    |                                        |- warning: 'associatedValue' is deprecated: renamed to 'parameterClause'
    |                                        `- note: use 'parameterClause' instead
109 |         if let defaultValue {
110 |           switchCaseSyntaxes.append(
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:108:57: warning: 'parameterList' is deprecated: renamed to 'parameters'
106 |       let caseSyntax = element.as(EnumCaseElementSyntax.self)!
107 |
108 |       guard let paramList = caseSyntax.associatedValue?.parameterList else {
    |                                                         |- warning: 'parameterList' is deprecated: renamed to 'parameters'
    |                                                         `- note: use 'parameters' instead
109 |         if let defaultValue {
110 |           switchCaseSyntaxes.append(
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:111:30: warning: 'identifier' is deprecated: renamed to 'name'
109 |         if let defaultValue {
110 |           switchCaseSyntaxes.append(
111 |             "case .\(element.identifier): return \(defaultValue)"
    |                              |- warning: 'identifier' is deprecated: renamed to 'name'
    |                              `- note: use 'name' instead
112 |           )
113 |           continue
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:115:93: warning: 'identifier' is deprecated: renamed to 'name'
113 |           continue
114 |         } else {
115 |           context.diagnose(ExtractCaseValueMacroDiagnostic.noAssociatedValues(case: element.identifier.text).diagnose(at: element, fixIts: [insertDefaultFixIt]))
    |                                                                                             |- warning: 'identifier' is deprecated: renamed to 'name'
    |                                                                                             `- note: use 'name' instead
116 |           return []
117 |         }
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:130:32: warning: 'identifier' is deprecated: renamed to 'name'
128 |           if let defaultValue {
129 |             switchCaseSyntaxes.append(
130 |               "case .\(element.identifier): return \(defaultValue)"
    |                                |- warning: 'identifier' is deprecated: renamed to 'name'
    |                                `- note: use 'name' instead
131 |             )
132 |             didUseDefaultValue = true
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:135:84: warning: 'identifier' is deprecated: renamed to 'name'
133 |             break
134 |           } else {
135 |             context.diagnose(ExtractCaseValueMacroDiagnostic.noValue(case: element.identifier.text, index: index).diagnose(at: element, fixIts: [insertDefaultFixIt]))
    |                                                                                    |- warning: 'identifier' is deprecated: renamed to 'name'
    |                                                                                    `- note: use 'name' instead
136 |             return []
137 |           }
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:141:87: warning: 'identifier' is deprecated: renamed to 'name'
139 |
140 |         guard associatedValue.element.type.matchesReturnType(returnType) else {
141 |           context.diagnose(ExtractCaseValueMacroDiagnostic.typeMismatch(case: element.identifier.text, index: index).diagnose(at: associatedValue.element))
    |                                                                                       |- warning: 'identifier' is deprecated: renamed to 'name'
    |                                                                                       `- note: use 'name' instead
142 |           return []
143 |         }
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:151:32: warning: 'identifier' is deprecated: renamed to 'name'
149 |           if let defaultValue {
150 |             switchCaseSyntaxes.append(
151 |               "case .\(element.identifier): return \(defaultValue)"
    |                                |- warning: 'identifier' is deprecated: renamed to 'name'
    |                                `- note: use 'name' instead
152 |             )
153 |             didUseDefaultValue = true
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:156:113: warning: 'identifier' is deprecated: renamed to 'name'
154 |             break
155 |           } else {
156 |             context.diagnose(ExtractCaseValueMacroDiagnostic.noAssociatedValueForName(name: name, case: element.identifier.text).diagnose(at: element, fixIts: [insertDefaultFixIt]))
    |                                                                                                                 |- warning: 'identifier' is deprecated: renamed to 'name'
    |                                                                                                                 `- note: use 'name' instead
157 |             return []
158 |           }
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:162:104: warning: 'identifier' is deprecated: renamed to 'name'
160 |
161 |         guard associatedValue.type.matchesReturnType(returnType) else {
162 |           context.diagnose(ExtractCaseValueMacroDiagnostic.typeMismatchNamed(name: name, case: element.identifier.text).diagnose(at: associatedValue))
    |                                                                                                        |- warning: 'identifier' is deprecated: renamed to 'name'
    |                                                                                                        `- note: use 'name' instead
163 |           return []
164 |         }
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:173:32: warning: 'identifier' is deprecated: renamed to 'name'
171 |           if let defaultValue {
172 |             switchCaseSyntaxes.append(
173 |               "case .\(element.identifier): return \(defaultValue)"
    |                                |- warning: 'identifier' is deprecated: renamed to 'name'
    |                                `- note: use 'name' instead
174 |             )
175 |             didUseDefaultValue = true
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:178:114: warning: 'identifier' is deprecated: renamed to 'name'
176 |             break
177 |           } else {
178 |             context.diagnose(ExtractCaseValueMacroDiagnostic.noMatchingType(type: "\(returnType)", case: element.identifier.text).diagnose(at: element, fixIts: [insertDefaultFixIt]))
    |                                                                                                                  |- warning: 'identifier' is deprecated: renamed to 'name'
    |                                                                                                                  `- note: use 'name' instead
179 |             return []
180 |           }
/host/spi-builder-workspace/Sources/ExtractCaseValueMacros/ExtractCaseValueMacro.swift:195:32: warning: 'identifier' is deprecated: renamed to 'name'
193 |
194 |         switchCaseSyntaxes.append(
195 |           "case let .\(element.identifier)(\(raw: variablesAndUnderscores)): return \(uniqueVariableName)"
    |                                |- warning: 'identifier' is deprecated: renamed to 'name'
    |                                `- note: use 'name' instead
196 |         )
197 |       }
BUILD FAILURE 6.0 linux