Build Information
Failed to build swift-nio-imap, reference 0.1.0 (ef2026
), with Swift 6.0 for Linux on 28 Nov 2024 23:45:32 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
:
33 |
34 | /// Stores messages deemed to be spam of junk mail, e.g. from a mailing list.
35 | public static let junk = Self("\\Junk")
| |- warning: static property 'junk' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'junk' 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
36 |
37 | /// Holds copies of messages that have been sent.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:38:23: warning: static property 'sent' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
36 |
37 | /// Holds copies of messages that have been sent.
38 | public static let sent = Self("\\Sent")
| |- warning: static property 'sent' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sent' 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
39 |
40 | /// Holds messages that have been deleted or marked for deletion.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:41:23: warning: static property 'trash' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
39 |
40 | /// Holds messages that have been deleted or marked for deletion.
41 | public static let trash = Self("\\Trash")
| |- warning: static property 'trash' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trash' 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
42 |
43 | internal let stringValue: String
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:21:27: warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
| |- warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'application' 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
22 |
23 | /// IMAP4rev1 audio
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:24:27: warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
22 |
23 | /// IMAP4rev1 audio
24 | public static let audio = Self("audio")
| |- warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'audio' 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
25 |
26 | /// IMAP4rev1 image
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:27:27: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
25 |
26 | /// IMAP4rev1 image
27 | public static let image = Self("image")
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'image' 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
28 |
29 | /// IMAP4rev1 message
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:30:27: warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
28 |
29 | /// IMAP4rev1 message
30 | public static let message = Self("message")
| |- warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'message' 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
31 |
32 | /// IMAP4rev1 video
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:33:27: warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
31 |
32 | /// IMAP4rev1 video
33 | public static let video = Self("video")
| |- warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'video' 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
34 |
35 | /// IMAP4rev1 font
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:18:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' 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
19 |
20 | /// Only entries immediately below the specified entry are returned
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:21:23: warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
19 |
20 | /// Only entries immediately below the specified entry are returned
21 | public static let one = Self(_backing: .one)
| |- warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'one' 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
22 |
23 | /// All entries below the specified entry are returned
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:24:23: warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
:
22 |
23 | /// All entries below the specified entry are returned
24 | public static let infinity = Self(_backing: .infinity)
| |- warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'infinity' 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
25 |
26 | enum _Backing: String {
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/SectionSpec.swift:43:23: warning: static property 'complete' is not concurrency-safe because non-'Sendable' type 'SectionSpecifier' may have shared mutable state; this is an error in the Swift 6 language mode
20 | ///
21 | /// Use `SectionSpecifier.complete` for an empty section specifier (i.e. the complete message).
22 | public struct SectionSpecifier: Hashable {
| `- note: consider making struct 'SectionSpecifier' conform to the 'Sendable' protocol
23 | /// The part of the body.
24 | public let part: Part
:
41 | extension SectionSpecifier {
42 | /// Corresponds to no specifier, i.e. the complete message (including its headers).
43 | public static let complete = SectionSpecifier(kind: .complete)
| |- warning: static property 'complete' is not concurrency-safe because non-'Sendable' type 'SectionSpecifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'complete' 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
44 |
45 | /// `Header` -- RFC 2822 header of the message
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:59:23: warning: static property 'noFlagChangesToAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
37 | /// to run in parallel. It’s ok for this logic not to be perfect as long as it errs on the
38 | /// side of caution.
39 | public enum PipeliningRequirement: Hashable {
| `- note: consider making enum 'PipeliningRequirement' conform to the 'Sendable' protocol
40 | /// No command that depend on the _Selected State_ must be running.
41 | case noMailboxCommandsRunning
:
57 | extension PipeliningRequirement {
58 | /// No flags are being changed.
59 | public static let noFlagChangesToAnyMessage = PipeliningRequirement.noFlagChanges(.all)
| |- warning: static property 'noFlagChangesToAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noFlagChangesToAnyMessage' 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
60 | /// No command is running that retrieves flags.
61 | public static let noFlagReadsFromAnyMessage = PipeliningRequirement.noFlagReads(.all)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:61:23: warning: static property 'noFlagReadsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
37 | /// to run in parallel. It’s ok for this logic not to be perfect as long as it errs on the
38 | /// side of caution.
39 | public enum PipeliningRequirement: Hashable {
| `- note: consider making enum 'PipeliningRequirement' conform to the 'Sendable' protocol
40 | /// No command that depend on the _Selected State_ must be running.
41 | case noMailboxCommandsRunning
:
59 | public static let noFlagChangesToAnyMessage = PipeliningRequirement.noFlagChanges(.all)
60 | /// No command is running that retrieves flags.
61 | public static let noFlagReadsFromAnyMessage = PipeliningRequirement.noFlagReads(.all)
| |- warning: static property 'noFlagReadsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noFlagReadsFromAnyMessage' 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
62 | }
63 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:100:23: warning: static property 'changesFlagsOnAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ///
66 | /// See `PipeliningRequirement`.
67 | public enum PipeliningBehavior: Hashable {
| `- note: consider making enum 'PipeliningBehavior' conform to the 'Sendable' protocol
68 | /// This command changes the _mailbox selection_.
69 | case changesMailboxSelection
:
98 | extension PipeliningBehavior {
99 | /// This command is changing flags on messages.
100 | public static let changesFlagsOnAnyMessage = PipeliningBehavior.changesFlags(.all)
| |- warning: static property 'changesFlagsOnAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'changesFlagsOnAnyMessage' 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
101 | /// This command is querying flags
102 | public static let readsFlagsFromAnyMessage = PipeliningBehavior.readsFlags(.all)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:102:23: warning: static property 'readsFlagsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ///
66 | /// See `PipeliningRequirement`.
67 | public enum PipeliningBehavior: Hashable {
| `- note: consider making enum 'PipeliningBehavior' conform to the 'Sendable' protocol
68 | /// This command changes the _mailbox selection_.
69 | case changesMailboxSelection
:
100 | public static let changesFlagsOnAnyMessage = PipeliningBehavior.changesFlags(.all)
101 | /// This command is querying flags
102 | public static let readsFlagsFromAnyMessage = PipeliningBehavior.readsFlags(.all)
| |- warning: static property 'readsFlagsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readsFlagsFromAnyMessage' 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
103 | }
104 |
[1138/1156] Compiling NIOIMAPCore ResponseEncodeBuffer.swift
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:29:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// The server should use the largest value among `.private` and `.shared` mod-sequences
28 | /// for the metadata item.
29 | public static var all = Self(backing: "all")
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
30 | }
31 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:22:23: warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Search private metadata items.
22 | public static var `private` = Self(backing: "priv")
| |- warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'private' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'private' 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
23 |
24 | /// Search shared metadata items.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:25:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Search shared metadata items.
25 | public static var shared = Self(backing: "shared")
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
26 |
27 | /// The server should use the largest value among `.private` and `.shared` mod-sequences
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryTypeResponse.swift:22:23: warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// `priv` - Private metadata item type.
22 | public static var `private` = Self(backing: "priv")
| |- warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'private' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'private' 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
23 |
24 | /// `shared` - Shared metadata item type.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryTypeResponse.swift:25:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// `shared` - Shared metadata item type.
25 | public static var shared = Self(backing: "shared")
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
26 | }
27 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:29:29: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
31 | return .max
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:34:41: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
:
32 | }
33 |
34 | func parse_identifierOrWildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
35 | try PL.parseOneOf(
36 | parse_wildcard,
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:43:49: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
:
41 | }
42 |
43 | func parse_colonAndIdentifierOrWildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
44 | try PL.parseFixedString(":", buffer: &buffer, tracker: tracker)
45 | return try parse_identifierOrWildcard(buffer: &buffer, tracker: tracker)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:88:47: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
90 | }
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:92:48: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
90 | }
91 |
92 | func parseMessageIdentifierSet_element<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
93 | try PL.parseOneOf(
94 | self.parseMessageIdentifierRange,
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:101:45: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
:
99 | }
100 |
101 | func parseMessageIdentifierSet_base<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
102 | try PL.composite(buffer: &buffer, tracker: tracker) { buffer, tracker in
103 | var output: [MessageIdentifierRange<T>] = [try parseMessageIdentifierSet_element(buffer: &buffer, tracker: tracker)]
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:115:52: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
:
113 | }
114 |
115 | func parseMessageIdentifierSet_lastCommand<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
116 | try PL.parseFixedString("$", buffer: &buffer, tracker: tracker)
117 | return .lastCommand
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser.swift:29:16: warning: static property 'defaultParsedStringCache' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | struct GrammarParser {
29 | static let defaultParsedStringCache: (String) -> String = { str in
| |- warning: static property 'defaultParsedStringCache' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultParsedStringCache' 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
30 | str
31 | }
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/InitialResponse.swift:21:23: warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | public struct InitialResponse: Hashable {
20 | /// Creates a new empty `InitialResponse` that will be encoded as `=`.
21 | public static var empty: Self = .init(ByteBuffer())
| |- warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'empty' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'empty' 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
22 |
23 | /// The data to be base-64 encoded.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:23:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
24 |
25 | /// Used to archive messages - note that the meaning of "archived" will vary from server to server.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:26:23: warning: static property 'archive' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
24 |
25 | /// Used to archive messages - note that the meaning of "archived" will vary from server to server.
26 | public static let archive = Self("\\Archive")
| |- warning: static property 'archive' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'archive' 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
27 |
28 | /// Used to store draft messages that have not been sent.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:29:23: warning: static property 'drafts' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
27 |
28 | /// Used to store draft messages that have not been sent.
29 | public static let drafts = Self("\\Drafts")
| |- warning: static property 'drafts' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drafts' 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
30 |
31 | /// Stores messages that have been marked as "important" for some reason.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:32:23: warning: static property 'flagged' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
30 |
31 | /// Stores messages that have been marked as "important" for some reason.
32 | public static let flagged = Self("\\Flagged")
| |- warning: static property 'flagged' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'flagged' 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
33 |
34 | /// Stores messages deemed to be spam of junk mail, e.g. from a mailing list.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:35:23: warning: static property 'junk' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
33 |
34 | /// Stores messages deemed to be spam of junk mail, e.g. from a mailing list.
35 | public static let junk = Self("\\Junk")
| |- warning: static property 'junk' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'junk' 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
36 |
37 | /// Holds copies of messages that have been sent.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:38:23: warning: static property 'sent' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
36 |
37 | /// Holds copies of messages that have been sent.
38 | public static let sent = Self("\\Sent")
| |- warning: static property 'sent' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sent' 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
39 |
40 | /// Holds messages that have been deleted or marked for deletion.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:41:23: warning: static property 'trash' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
39 |
40 | /// Holds messages that have been deleted or marked for deletion.
41 | public static let trash = Self("\\Trash")
| |- warning: static property 'trash' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trash' 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
42 |
43 | internal let stringValue: String
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:21:27: warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
| |- warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'application' 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
22 |
23 | /// IMAP4rev1 audio
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:24:27: warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
22 |
23 | /// IMAP4rev1 audio
24 | public static let audio = Self("audio")
| |- warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'audio' 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
25 |
26 | /// IMAP4rev1 image
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:27:27: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
25 |
26 | /// IMAP4rev1 image
27 | public static let image = Self("image")
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'image' 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
28 |
29 | /// IMAP4rev1 message
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:30:27: warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
28 |
29 | /// IMAP4rev1 message
30 | public static let message = Self("message")
| |- warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'message' 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
31 |
32 | /// IMAP4rev1 video
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:33:27: warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
31 |
32 | /// IMAP4rev1 video
33 | public static let video = Self("video")
| |- warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'video' 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
34 |
35 | /// IMAP4rev1 font
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:18:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' 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
19 |
20 | /// Only entries immediately below the specified entry are returned
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:21:23: warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
19 |
20 | /// Only entries immediately below the specified entry are returned
21 | public static let one = Self(_backing: .one)
| |- warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'one' 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
22 |
23 | /// All entries below the specified entry are returned
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:24:23: warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
:
22 |
23 | /// All entries below the specified entry are returned
24 | public static let infinity = Self(_backing: .infinity)
| |- warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'infinity' 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
25 |
26 | enum _Backing: String {
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/SectionSpec.swift:43:23: warning: static property 'complete' is not concurrency-safe because non-'Sendable' type 'SectionSpecifier' may have shared mutable state; this is an error in the Swift 6 language mode
20 | ///
21 | /// Use `SectionSpecifier.complete` for an empty section specifier (i.e. the complete message).
22 | public struct SectionSpecifier: Hashable {
| `- note: consider making struct 'SectionSpecifier' conform to the 'Sendable' protocol
23 | /// The part of the body.
24 | public let part: Part
:
41 | extension SectionSpecifier {
42 | /// Corresponds to no specifier, i.e. the complete message (including its headers).
43 | public static let complete = SectionSpecifier(kind: .complete)
| |- warning: static property 'complete' is not concurrency-safe because non-'Sendable' type 'SectionSpecifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'complete' 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
44 |
45 | /// `Header` -- RFC 2822 header of the message
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:59:23: warning: static property 'noFlagChangesToAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
37 | /// to run in parallel. It’s ok for this logic not to be perfect as long as it errs on the
38 | /// side of caution.
39 | public enum PipeliningRequirement: Hashable {
| `- note: consider making enum 'PipeliningRequirement' conform to the 'Sendable' protocol
40 | /// No command that depend on the _Selected State_ must be running.
41 | case noMailboxCommandsRunning
:
57 | extension PipeliningRequirement {
58 | /// No flags are being changed.
59 | public static let noFlagChangesToAnyMessage = PipeliningRequirement.noFlagChanges(.all)
| |- warning: static property 'noFlagChangesToAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noFlagChangesToAnyMessage' 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
60 | /// No command is running that retrieves flags.
61 | public static let noFlagReadsFromAnyMessage = PipeliningRequirement.noFlagReads(.all)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:61:23: warning: static property 'noFlagReadsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
37 | /// to run in parallel. It’s ok for this logic not to be perfect as long as it errs on the
38 | /// side of caution.
39 | public enum PipeliningRequirement: Hashable {
| `- note: consider making enum 'PipeliningRequirement' conform to the 'Sendable' protocol
40 | /// No command that depend on the _Selected State_ must be running.
41 | case noMailboxCommandsRunning
:
59 | public static let noFlagChangesToAnyMessage = PipeliningRequirement.noFlagChanges(.all)
60 | /// No command is running that retrieves flags.
61 | public static let noFlagReadsFromAnyMessage = PipeliningRequirement.noFlagReads(.all)
| |- warning: static property 'noFlagReadsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noFlagReadsFromAnyMessage' 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
62 | }
63 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:100:23: warning: static property 'changesFlagsOnAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ///
66 | /// See `PipeliningRequirement`.
67 | public enum PipeliningBehavior: Hashable {
| `- note: consider making enum 'PipeliningBehavior' conform to the 'Sendable' protocol
68 | /// This command changes the _mailbox selection_.
69 | case changesMailboxSelection
:
98 | extension PipeliningBehavior {
99 | /// This command is changing flags on messages.
100 | public static let changesFlagsOnAnyMessage = PipeliningBehavior.changesFlags(.all)
| |- warning: static property 'changesFlagsOnAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'changesFlagsOnAnyMessage' 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
101 | /// This command is querying flags
102 | public static let readsFlagsFromAnyMessage = PipeliningBehavior.readsFlags(.all)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:102:23: warning: static property 'readsFlagsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ///
66 | /// See `PipeliningRequirement`.
67 | public enum PipeliningBehavior: Hashable {
| `- note: consider making enum 'PipeliningBehavior' conform to the 'Sendable' protocol
68 | /// This command changes the _mailbox selection_.
69 | case changesMailboxSelection
:
100 | public static let changesFlagsOnAnyMessage = PipeliningBehavior.changesFlags(.all)
101 | /// This command is querying flags
102 | public static let readsFlagsFromAnyMessage = PipeliningBehavior.readsFlags(.all)
| |- warning: static property 'readsFlagsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readsFlagsFromAnyMessage' 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
103 | }
104 |
[1139/1156] Compiling NIOIMAPCore ResponseEncodingOptions.swift
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:29:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// The server should use the largest value among `.private` and `.shared` mod-sequences
28 | /// for the metadata item.
29 | public static var all = Self(backing: "all")
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
30 | }
31 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:22:23: warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Search private metadata items.
22 | public static var `private` = Self(backing: "priv")
| |- warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'private' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'private' 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
23 |
24 | /// Search shared metadata items.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:25:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Search shared metadata items.
25 | public static var shared = Self(backing: "shared")
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
26 |
27 | /// The server should use the largest value among `.private` and `.shared` mod-sequences
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryTypeResponse.swift:22:23: warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// `priv` - Private metadata item type.
22 | public static var `private` = Self(backing: "priv")
| |- warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'private' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'private' 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
23 |
24 | /// `shared` - Shared metadata item type.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryTypeResponse.swift:25:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// `shared` - Shared metadata item type.
25 | public static var shared = Self(backing: "shared")
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
26 | }
27 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:29:29: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
31 | return .max
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:34:41: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
:
32 | }
33 |
34 | func parse_identifierOrWildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
35 | try PL.parseOneOf(
36 | parse_wildcard,
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:43:49: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
:
41 | }
42 |
43 | func parse_colonAndIdentifierOrWildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
44 | try PL.parseFixedString(":", buffer: &buffer, tracker: tracker)
45 | return try parse_identifierOrWildcard(buffer: &buffer, tracker: tracker)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:88:47: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
90 | }
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:92:48: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
90 | }
91 |
92 | func parseMessageIdentifierSet_element<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
93 | try PL.parseOneOf(
94 | self.parseMessageIdentifierRange,
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:101:45: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
:
99 | }
100 |
101 | func parseMessageIdentifierSet_base<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
102 | try PL.composite(buffer: &buffer, tracker: tracker) { buffer, tracker in
103 | var output: [MessageIdentifierRange<T>] = [try parseMessageIdentifierSet_element(buffer: &buffer, tracker: tracker)]
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:115:52: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
:
113 | }
114 |
115 | func parseMessageIdentifierSet_lastCommand<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
116 | try PL.parseFixedString("$", buffer: &buffer, tracker: tracker)
117 | return .lastCommand
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser.swift:29:16: warning: static property 'defaultParsedStringCache' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | struct GrammarParser {
29 | static let defaultParsedStringCache: (String) -> String = { str in
| |- warning: static property 'defaultParsedStringCache' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultParsedStringCache' 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
30 | str
31 | }
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/InitialResponse.swift:21:23: warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | public struct InitialResponse: Hashable {
20 | /// Creates a new empty `InitialResponse` that will be encoded as `=`.
21 | public static var empty: Self = .init(ByteBuffer())
| |- warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'empty' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'empty' 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
22 |
23 | /// The data to be base-64 encoded.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:23:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
24 |
25 | /// Used to archive messages - note that the meaning of "archived" will vary from server to server.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:26:23: warning: static property 'archive' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
24 |
25 | /// Used to archive messages - note that the meaning of "archived" will vary from server to server.
26 | public static let archive = Self("\\Archive")
| |- warning: static property 'archive' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'archive' 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
27 |
28 | /// Used to store draft messages that have not been sent.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:29:23: warning: static property 'drafts' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
27 |
28 | /// Used to store draft messages that have not been sent.
29 | public static let drafts = Self("\\Drafts")
| |- warning: static property 'drafts' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drafts' 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
30 |
31 | /// Stores messages that have been marked as "important" for some reason.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:32:23: warning: static property 'flagged' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
30 |
31 | /// Stores messages that have been marked as "important" for some reason.
32 | public static let flagged = Self("\\Flagged")
| |- warning: static property 'flagged' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'flagged' 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
33 |
34 | /// Stores messages deemed to be spam of junk mail, e.g. from a mailing list.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:35:23: warning: static property 'junk' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
33 |
34 | /// Stores messages deemed to be spam of junk mail, e.g. from a mailing list.
35 | public static let junk = Self("\\Junk")
| |- warning: static property 'junk' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'junk' 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
36 |
37 | /// Holds copies of messages that have been sent.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:38:23: warning: static property 'sent' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
36 |
37 | /// Holds copies of messages that have been sent.
38 | public static let sent = Self("\\Sent")
| |- warning: static property 'sent' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sent' 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
39 |
40 | /// Holds messages that have been deleted or marked for deletion.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:41:23: warning: static property 'trash' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
39 |
40 | /// Holds messages that have been deleted or marked for deletion.
41 | public static let trash = Self("\\Trash")
| |- warning: static property 'trash' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trash' 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
42 |
43 | internal let stringValue: String
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:21:27: warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
| |- warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'application' 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
22 |
23 | /// IMAP4rev1 audio
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:24:27: warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
22 |
23 | /// IMAP4rev1 audio
24 | public static let audio = Self("audio")
| |- warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'audio' 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
25 |
26 | /// IMAP4rev1 image
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:27:27: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
25 |
26 | /// IMAP4rev1 image
27 | public static let image = Self("image")
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'image' 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
28 |
29 | /// IMAP4rev1 message
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:30:27: warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
28 |
29 | /// IMAP4rev1 message
30 | public static let message = Self("message")
| |- warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'message' 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
31 |
32 | /// IMAP4rev1 video
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:33:27: warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
31 |
32 | /// IMAP4rev1 video
33 | public static let video = Self("video")
| |- warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'video' 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
34 |
35 | /// IMAP4rev1 font
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:18:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' 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
19 |
20 | /// Only entries immediately below the specified entry are returned
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:21:23: warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
19 |
20 | /// Only entries immediately below the specified entry are returned
21 | public static let one = Self(_backing: .one)
| |- warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'one' 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
22 |
23 | /// All entries below the specified entry are returned
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:24:23: warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
:
22 |
23 | /// All entries below the specified entry are returned
24 | public static let infinity = Self(_backing: .infinity)
| |- warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'infinity' 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
25 |
26 | enum _Backing: String {
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/SectionSpec.swift:43:23: warning: static property 'complete' is not concurrency-safe because non-'Sendable' type 'SectionSpecifier' may have shared mutable state; this is an error in the Swift 6 language mode
20 | ///
21 | /// Use `SectionSpecifier.complete` for an empty section specifier (i.e. the complete message).
22 | public struct SectionSpecifier: Hashable {
| `- note: consider making struct 'SectionSpecifier' conform to the 'Sendable' protocol
23 | /// The part of the body.
24 | public let part: Part
:
41 | extension SectionSpecifier {
42 | /// Corresponds to no specifier, i.e. the complete message (including its headers).
43 | public static let complete = SectionSpecifier(kind: .complete)
| |- warning: static property 'complete' is not concurrency-safe because non-'Sendable' type 'SectionSpecifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'complete' 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
44 |
45 | /// `Header` -- RFC 2822 header of the message
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:59:23: warning: static property 'noFlagChangesToAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
37 | /// to run in parallel. It’s ok for this logic not to be perfect as long as it errs on the
38 | /// side of caution.
39 | public enum PipeliningRequirement: Hashable {
| `- note: consider making enum 'PipeliningRequirement' conform to the 'Sendable' protocol
40 | /// No command that depend on the _Selected State_ must be running.
41 | case noMailboxCommandsRunning
:
57 | extension PipeliningRequirement {
58 | /// No flags are being changed.
59 | public static let noFlagChangesToAnyMessage = PipeliningRequirement.noFlagChanges(.all)
| |- warning: static property 'noFlagChangesToAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noFlagChangesToAnyMessage' 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
60 | /// No command is running that retrieves flags.
61 | public static let noFlagReadsFromAnyMessage = PipeliningRequirement.noFlagReads(.all)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:61:23: warning: static property 'noFlagReadsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
37 | /// to run in parallel. It’s ok for this logic not to be perfect as long as it errs on the
38 | /// side of caution.
39 | public enum PipeliningRequirement: Hashable {
| `- note: consider making enum 'PipeliningRequirement' conform to the 'Sendable' protocol
40 | /// No command that depend on the _Selected State_ must be running.
41 | case noMailboxCommandsRunning
:
59 | public static let noFlagChangesToAnyMessage = PipeliningRequirement.noFlagChanges(.all)
60 | /// No command is running that retrieves flags.
61 | public static let noFlagReadsFromAnyMessage = PipeliningRequirement.noFlagReads(.all)
| |- warning: static property 'noFlagReadsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noFlagReadsFromAnyMessage' 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
62 | }
63 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:100:23: warning: static property 'changesFlagsOnAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ///
66 | /// See `PipeliningRequirement`.
67 | public enum PipeliningBehavior: Hashable {
| `- note: consider making enum 'PipeliningBehavior' conform to the 'Sendable' protocol
68 | /// This command changes the _mailbox selection_.
69 | case changesMailboxSelection
:
98 | extension PipeliningBehavior {
99 | /// This command is changing flags on messages.
100 | public static let changesFlagsOnAnyMessage = PipeliningBehavior.changesFlags(.all)
| |- warning: static property 'changesFlagsOnAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'changesFlagsOnAnyMessage' 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
101 | /// This command is querying flags
102 | public static let readsFlagsFromAnyMessage = PipeliningBehavior.readsFlags(.all)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:102:23: warning: static property 'readsFlagsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ///
66 | /// See `PipeliningRequirement`.
67 | public enum PipeliningBehavior: Hashable {
| `- note: consider making enum 'PipeliningBehavior' conform to the 'Sendable' protocol
68 | /// This command changes the _mailbox selection_.
69 | case changesMailboxSelection
:
100 | public static let changesFlagsOnAnyMessage = PipeliningBehavior.changesFlags(.all)
101 | /// This command is querying flags
102 | public static let readsFlagsFromAnyMessage = PipeliningBehavior.readsFlags(.all)
| |- warning: static property 'readsFlagsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readsFlagsFromAnyMessage' 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
103 | }
104 |
[1140/1156] Compiling NIOIMAPCore String+ByteBuffer.swift
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:29:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// The server should use the largest value among `.private` and `.shared` mod-sequences
28 | /// for the metadata item.
29 | public static var all = Self(backing: "all")
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
30 | }
31 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:22:23: warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Search private metadata items.
22 | public static var `private` = Self(backing: "priv")
| |- warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'private' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'private' 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
23 |
24 | /// Search shared metadata items.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:25:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Search shared metadata items.
25 | public static var shared = Self(backing: "shared")
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
26 |
27 | /// The server should use the largest value among `.private` and `.shared` mod-sequences
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryTypeResponse.swift:22:23: warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// `priv` - Private metadata item type.
22 | public static var `private` = Self(backing: "priv")
| |- warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'private' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'private' 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
23 |
24 | /// `shared` - Shared metadata item type.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryTypeResponse.swift:25:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// `shared` - Shared metadata item type.
25 | public static var shared = Self(backing: "shared")
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
26 | }
27 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:29:29: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
31 | return .max
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:34:41: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
:
32 | }
33 |
34 | func parse_identifierOrWildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
35 | try PL.parseOneOf(
36 | parse_wildcard,
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:43:49: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
:
41 | }
42 |
43 | func parse_colonAndIdentifierOrWildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
44 | try PL.parseFixedString(":", buffer: &buffer, tracker: tracker)
45 | return try parse_identifierOrWildcard(buffer: &buffer, tracker: tracker)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:88:47: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
90 | }
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:92:48: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
90 | }
91 |
92 | func parseMessageIdentifierSet_element<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
93 | try PL.parseOneOf(
94 | self.parseMessageIdentifierRange,
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:101:45: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
:
99 | }
100 |
101 | func parseMessageIdentifierSet_base<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
102 | try PL.composite(buffer: &buffer, tracker: tracker) { buffer, tracker in
103 | var output: [MessageIdentifierRange<T>] = [try parseMessageIdentifierSet_element(buffer: &buffer, tracker: tracker)]
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:115:52: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
:
113 | }
114 |
115 | func parseMessageIdentifierSet_lastCommand<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
116 | try PL.parseFixedString("$", buffer: &buffer, tracker: tracker)
117 | return .lastCommand
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser.swift:29:16: warning: static property 'defaultParsedStringCache' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | struct GrammarParser {
29 | static let defaultParsedStringCache: (String) -> String = { str in
| |- warning: static property 'defaultParsedStringCache' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultParsedStringCache' 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
30 | str
31 | }
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/InitialResponse.swift:21:23: warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | public struct InitialResponse: Hashable {
20 | /// Creates a new empty `InitialResponse` that will be encoded as `=`.
21 | public static var empty: Self = .init(ByteBuffer())
| |- warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'empty' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'empty' 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
22 |
23 | /// The data to be base-64 encoded.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:23:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
24 |
25 | /// Used to archive messages - note that the meaning of "archived" will vary from server to server.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:26:23: warning: static property 'archive' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
24 |
25 | /// Used to archive messages - note that the meaning of "archived" will vary from server to server.
26 | public static let archive = Self("\\Archive")
| |- warning: static property 'archive' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'archive' 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
27 |
28 | /// Used to store draft messages that have not been sent.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:29:23: warning: static property 'drafts' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
27 |
28 | /// Used to store draft messages that have not been sent.
29 | public static let drafts = Self("\\Drafts")
| |- warning: static property 'drafts' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drafts' 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
30 |
31 | /// Stores messages that have been marked as "important" for some reason.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:32:23: warning: static property 'flagged' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
30 |
31 | /// Stores messages that have been marked as "important" for some reason.
32 | public static let flagged = Self("\\Flagged")
| |- warning: static property 'flagged' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'flagged' 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
33 |
34 | /// Stores messages deemed to be spam of junk mail, e.g. from a mailing list.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:35:23: warning: static property 'junk' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
33 |
34 | /// Stores messages deemed to be spam of junk mail, e.g. from a mailing list.
35 | public static let junk = Self("\\Junk")
| |- warning: static property 'junk' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'junk' 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
36 |
37 | /// Holds copies of messages that have been sent.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:38:23: warning: static property 'sent' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
36 |
37 | /// Holds copies of messages that have been sent.
38 | public static let sent = Self("\\Sent")
| |- warning: static property 'sent' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sent' 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
39 |
40 | /// Holds messages that have been deleted or marked for deletion.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:41:23: warning: static property 'trash' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
39 |
40 | /// Holds messages that have been deleted or marked for deletion.
41 | public static let trash = Self("\\Trash")
| |- warning: static property 'trash' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trash' 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
42 |
43 | internal let stringValue: String
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:21:27: warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
| |- warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'application' 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
22 |
23 | /// IMAP4rev1 audio
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:24:27: warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
22 |
23 | /// IMAP4rev1 audio
24 | public static let audio = Self("audio")
| |- warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'audio' 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
25 |
26 | /// IMAP4rev1 image
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:27:27: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
25 |
26 | /// IMAP4rev1 image
27 | public static let image = Self("image")
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'image' 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
28 |
29 | /// IMAP4rev1 message
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:30:27: warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
28 |
29 | /// IMAP4rev1 message
30 | public static let message = Self("message")
| |- warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'message' 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
31 |
32 | /// IMAP4rev1 video
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:33:27: warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
31 |
32 | /// IMAP4rev1 video
33 | public static let video = Self("video")
| |- warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'video' 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
34 |
35 | /// IMAP4rev1 font
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:18:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' 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
19 |
20 | /// Only entries immediately below the specified entry are returned
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:21:23: warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
19 |
20 | /// Only entries immediately below the specified entry are returned
21 | public static let one = Self(_backing: .one)
| |- warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'one' 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
22 |
23 | /// All entries below the specified entry are returned
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:24:23: warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
:
22 |
23 | /// All entries below the specified entry are returned
24 | public static let infinity = Self(_backing: .infinity)
| |- warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'infinity' 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
25 |
26 | enum _Backing: String {
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/SectionSpec.swift:43:23: warning: static property 'complete' is not concurrency-safe because non-'Sendable' type 'SectionSpecifier' may have shared mutable state; this is an error in the Swift 6 language mode
20 | ///
21 | /// Use `SectionSpecifier.complete` for an empty section specifier (i.e. the complete message).
22 | public struct SectionSpecifier: Hashable {
| `- note: consider making struct 'SectionSpecifier' conform to the 'Sendable' protocol
23 | /// The part of the body.
24 | public let part: Part
:
41 | extension SectionSpecifier {
42 | /// Corresponds to no specifier, i.e. the complete message (including its headers).
43 | public static let complete = SectionSpecifier(kind: .complete)
| |- warning: static property 'complete' is not concurrency-safe because non-'Sendable' type 'SectionSpecifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'complete' 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
44 |
45 | /// `Header` -- RFC 2822 header of the message
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:59:23: warning: static property 'noFlagChangesToAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
37 | /// to run in parallel. It’s ok for this logic not to be perfect as long as it errs on the
38 | /// side of caution.
39 | public enum PipeliningRequirement: Hashable {
| `- note: consider making enum 'PipeliningRequirement' conform to the 'Sendable' protocol
40 | /// No command that depend on the _Selected State_ must be running.
41 | case noMailboxCommandsRunning
:
57 | extension PipeliningRequirement {
58 | /// No flags are being changed.
59 | public static let noFlagChangesToAnyMessage = PipeliningRequirement.noFlagChanges(.all)
| |- warning: static property 'noFlagChangesToAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noFlagChangesToAnyMessage' 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
60 | /// No command is running that retrieves flags.
61 | public static let noFlagReadsFromAnyMessage = PipeliningRequirement.noFlagReads(.all)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:61:23: warning: static property 'noFlagReadsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
37 | /// to run in parallel. It’s ok for this logic not to be perfect as long as it errs on the
38 | /// side of caution.
39 | public enum PipeliningRequirement: Hashable {
| `- note: consider making enum 'PipeliningRequirement' conform to the 'Sendable' protocol
40 | /// No command that depend on the _Selected State_ must be running.
41 | case noMailboxCommandsRunning
:
59 | public static let noFlagChangesToAnyMessage = PipeliningRequirement.noFlagChanges(.all)
60 | /// No command is running that retrieves flags.
61 | public static let noFlagReadsFromAnyMessage = PipeliningRequirement.noFlagReads(.all)
| |- warning: static property 'noFlagReadsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noFlagReadsFromAnyMessage' 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
62 | }
63 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:100:23: warning: static property 'changesFlagsOnAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ///
66 | /// See `PipeliningRequirement`.
67 | public enum PipeliningBehavior: Hashable {
| `- note: consider making enum 'PipeliningBehavior' conform to the 'Sendable' protocol
68 | /// This command changes the _mailbox selection_.
69 | case changesMailboxSelection
:
98 | extension PipeliningBehavior {
99 | /// This command is changing flags on messages.
100 | public static let changesFlagsOnAnyMessage = PipeliningBehavior.changesFlags(.all)
| |- warning: static property 'changesFlagsOnAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'changesFlagsOnAnyMessage' 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
101 | /// This command is querying flags
102 | public static let readsFlagsFromAnyMessage = PipeliningBehavior.readsFlags(.all)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:102:23: warning: static property 'readsFlagsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ///
66 | /// See `PipeliningRequirement`.
67 | public enum PipeliningBehavior: Hashable {
| `- note: consider making enum 'PipeliningBehavior' conform to the 'Sendable' protocol
68 | /// This command changes the _mailbox selection_.
69 | case changesMailboxSelection
:
100 | public static let changesFlagsOnAnyMessage = PipeliningBehavior.changesFlags(.all)
101 | /// This command is querying flags
102 | public static let readsFlagsFromAnyMessage = PipeliningBehavior.readsFlags(.all)
| |- warning: static property 'readsFlagsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readsFlagsFromAnyMessage' 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
103 | }
104 |
[1141/1156] Compiling NIOIMAPCore _ByteBufferProtocol.swift
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:29:23: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | /// The server should use the largest value among `.private` and `.shared` mod-sequences
28 | /// for the metadata item.
29 | public static var all = Self(backing: "all")
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'all' 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
30 | }
31 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:22:23: warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// Search private metadata items.
22 | public static var `private` = Self(backing: "priv")
| |- warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'private' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'private' 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
23 |
24 | /// Search shared metadata items.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryKindRequest.swift:25:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// Search shared metadata items.
25 | public static var shared = Self(backing: "shared")
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
26 |
27 | /// The server should use the largest value among `.private` and `.shared` mod-sequences
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryTypeResponse.swift:22:23: warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 |
21 | /// `priv` - Private metadata item type.
22 | public static var `private` = Self(backing: "priv")
| |- warning: static property 'private' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'private' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'private' 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
23 |
24 | /// `shared` - Shared metadata item type.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Entry/EntryTypeResponse.swift:25:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
23 |
24 | /// `shared` - Shared metadata item type.
25 | public static var shared = Self(backing: "shared")
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' 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
26 | }
27 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:29:29: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
31 | return .max
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:34:41: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
:
32 | }
33 |
34 | func parse_identifierOrWildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
35 | try PL.parseOneOf(
36 | parse_wildcard,
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:43:49: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
26 | extension GrammarParser {
27 | // Sequence Range
28 | func parseMessageIdentifierRange<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- note: 'T' previously declared here
29 | func parse_wildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
30 | try PL.parseFixedString("*", buffer: &buffer, tracker: tracker)
:
41 | }
42 |
43 | func parse_colonAndIdentifierOrWildcard<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> T {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
44 | try PL.parseFixedString(":", buffer: &buffer, tracker: tracker)
45 | return try parse_identifierOrWildcard(buffer: &buffer, tracker: tracker)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:88:47: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
90 | }
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:92:48: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
90 | }
91 |
92 | func parseMessageIdentifierSet_element<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
93 | try PL.parseOneOf(
94 | self.parseMessageIdentifierRange,
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:101:45: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
:
99 | }
100 |
101 | func parseMessageIdentifierSet_base<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
102 | try PL.composite(buffer: &buffer, tracker: tracker) { buffer, tracker in
103 | var output: [MessageIdentifierRange<T>] = [try parseMessageIdentifierSet_element(buffer: &buffer, tracker: tracker)]
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser+Sequence.swift:115:52: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
85 | // sequence-set =/ seq-last-command
86 | // seq-last-command = "$"
87 | func parseMessageIdentifierSet<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- note: 'T' previously declared here
88 | func parseMessageIdentifierSet_number<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> MessageIdentifierRange<T> {
89 | MessageIdentifierRange<T>(try self.parseMessageIdentifier(buffer: &buffer, tracker: tracker))
:
113 | }
114 |
115 | func parseMessageIdentifierSet_lastCommand<T: MessageIdentifier>(buffer: inout ParseBuffer, tracker: StackTracker) throws -> LastCommandSet<MessageIdentifierSet<T>> {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
116 | try PL.parseFixedString("$", buffer: &buffer, tracker: tracker)
117 | return .lastCommand
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/NIOIMAPCore/Parser/Grammar/GrammarParser.swift:29:16: warning: static property 'defaultParsedStringCache' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
27 |
28 | struct GrammarParser {
29 | static let defaultParsedStringCache: (String) -> String = { str in
| |- warning: static property 'defaultParsedStringCache' is not concurrency-safe because non-'Sendable' type '(String) -> String' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultParsedStringCache' 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
30 | str
31 | }
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/InitialResponse.swift:21:23: warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 | public struct InitialResponse: Hashable {
20 | /// Creates a new empty `InitialResponse` that will be encoded as `=`.
21 | public static var empty: Self = .init(ByteBuffer())
| |- warning: static property 'empty' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'empty' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'empty' 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
22 |
23 | /// The data to be base-64 encoded.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:23:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
24 |
25 | /// Used to archive messages - note that the meaning of "archived" will vary from server to server.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:26:23: warning: static property 'archive' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
24 |
25 | /// Used to archive messages - note that the meaning of "archived" will vary from server to server.
26 | public static let archive = Self("\\Archive")
| |- warning: static property 'archive' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'archive' 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
27 |
28 | /// Used to store draft messages that have not been sent.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:29:23: warning: static property 'drafts' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
27 |
28 | /// Used to store draft messages that have not been sent.
29 | public static let drafts = Self("\\Drafts")
| |- warning: static property 'drafts' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'drafts' 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
30 |
31 | /// Stores messages that have been marked as "important" for some reason.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:32:23: warning: static property 'flagged' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
30 |
31 | /// Stores messages that have been marked as "important" for some reason.
32 | public static let flagged = Self("\\Flagged")
| |- warning: static property 'flagged' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'flagged' 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
33 |
34 | /// Stores messages deemed to be spam of junk mail, e.g. from a mailing list.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:35:23: warning: static property 'junk' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
33 |
34 | /// Stores messages deemed to be spam of junk mail, e.g. from a mailing list.
35 | public static let junk = Self("\\Junk")
| |- warning: static property 'junk' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'junk' 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
36 |
37 | /// Holds copies of messages that have been sent.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:38:23: warning: static property 'sent' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
36 |
37 | /// Holds copies of messages that have been sent.
38 | public static let sent = Self("\\Sent")
| |- warning: static property 'sent' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sent' 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
39 |
40 | /// Holds messages that have been deleted or marked for deletion.
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/UseAttribute.swift:41:23: warning: static property 'trash' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// The raw `String` value is lower-cased on initialisation to ensure
20 | /// case-insensitive comparison.
21 | public struct UseAttribute: Hashable {
| `- note: consider making struct 'UseAttribute' conform to the 'Sendable' protocol
22 | /// A mailbox that presents all messages in the user's store.
23 | public static let all = Self("\\All")
:
39 |
40 | /// Holds messages that have been deleted or marked for deletion.
41 | public static let trash = Self("\\Trash")
| |- warning: static property 'trash' is not concurrency-safe because non-'Sendable' type 'UseAttribute' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'trash' 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
42 |
43 | internal let stringValue: String
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:21:27: warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
| |- warning: static property 'application' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'application' 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
22 |
23 | /// IMAP4rev1 audio
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:24:27: warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
22 |
23 | /// IMAP4rev1 audio
24 | public static let audio = Self("audio")
| |- warning: static property 'audio' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'audio' 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
25 |
26 | /// IMAP4rev1 image
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:27:27: warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
25 |
26 | /// IMAP4rev1 image
27 | public static let image = Self("image")
| |- warning: static property 'image' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'image' 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
28 |
29 | /// IMAP4rev1 message
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:30:27: warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
28 |
29 | /// IMAP4rev1 message
30 | public static let message = Self("message")
| |- warning: static property 'message' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'message' 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
31 |
32 | /// IMAP4rev1 video
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Media/Basic.swift:33:27: warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
17 | extension Media {
18 | /// Represents a simple but common data type such as *application* or *image*
19 | public struct BasicKind: CustomDebugStringConvertible, Hashable {
| `- note: consider making struct 'BasicKind' conform to the 'Sendable' protocol
20 | /// IMAP4rev1 application
21 | public static let application = Self("application")
:
31 |
32 | /// IMAP4rev1 video
33 | public static let video = Self("video")
| |- warning: static property 'video' is not concurrency-safe because non-'Sendable' type 'Media.BasicKind' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'video' 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
34 |
35 | /// IMAP4rev1 font
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:18:23: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
| |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'zero' 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
19 |
20 | /// Only entries immediately below the specified entry are returned
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:21:23: warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
19 |
20 | /// Only entries immediately below the specified entry are returned
21 | public static let one = Self(_backing: .one)
| |- warning: static property 'one' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'one' 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
22 |
23 | /// All entries below the specified entry are returned
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/ScopeOption.swift:24:23: warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Used an option to `.getMetadata` to specify the depth.
16 | public struct ScopeOption: Hashable {
| `- note: consider making struct 'ScopeOption' conform to the 'Sendable' protocol
17 | /// No entries below the specified entry are returned
18 | public static let zero = Self(_backing: .zero)
:
22 |
23 | /// All entries below the specified entry are returned
24 | public static let infinity = Self(_backing: .infinity)
| |- warning: static property 'infinity' is not concurrency-safe because non-'Sendable' type 'ScopeOption' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'infinity' 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
25 |
26 | enum _Backing: String {
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/SectionSpec.swift:43:23: warning: static property 'complete' is not concurrency-safe because non-'Sendable' type 'SectionSpecifier' may have shared mutable state; this is an error in the Swift 6 language mode
20 | ///
21 | /// Use `SectionSpecifier.complete` for an empty section specifier (i.e. the complete message).
22 | public struct SectionSpecifier: Hashable {
| `- note: consider making struct 'SectionSpecifier' conform to the 'Sendable' protocol
23 | /// The part of the body.
24 | public let part: Part
:
41 | extension SectionSpecifier {
42 | /// Corresponds to no specifier, i.e. the complete message (including its headers).
43 | public static let complete = SectionSpecifier(kind: .complete)
| |- warning: static property 'complete' is not concurrency-safe because non-'Sendable' type 'SectionSpecifier' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'complete' 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
44 |
45 | /// `Header` -- RFC 2822 header of the message
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:59:23: warning: static property 'noFlagChangesToAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
37 | /// to run in parallel. It’s ok for this logic not to be perfect as long as it errs on the
38 | /// side of caution.
39 | public enum PipeliningRequirement: Hashable {
| `- note: consider making enum 'PipeliningRequirement' conform to the 'Sendable' protocol
40 | /// No command that depend on the _Selected State_ must be running.
41 | case noMailboxCommandsRunning
:
57 | extension PipeliningRequirement {
58 | /// No flags are being changed.
59 | public static let noFlagChangesToAnyMessage = PipeliningRequirement.noFlagChanges(.all)
| |- warning: static property 'noFlagChangesToAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noFlagChangesToAnyMessage' 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
60 | /// No command is running that retrieves flags.
61 | public static let noFlagReadsFromAnyMessage = PipeliningRequirement.noFlagReads(.all)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:61:23: warning: static property 'noFlagReadsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
37 | /// to run in parallel. It’s ok for this logic not to be perfect as long as it errs on the
38 | /// side of caution.
39 | public enum PipeliningRequirement: Hashable {
| `- note: consider making enum 'PipeliningRequirement' conform to the 'Sendable' protocol
40 | /// No command that depend on the _Selected State_ must be running.
41 | case noMailboxCommandsRunning
:
59 | public static let noFlagChangesToAnyMessage = PipeliningRequirement.noFlagChanges(.all)
60 | /// No command is running that retrieves flags.
61 | public static let noFlagReadsFromAnyMessage = PipeliningRequirement.noFlagReads(.all)
| |- warning: static property 'noFlagReadsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noFlagReadsFromAnyMessage' 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
62 | }
63 |
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:100:23: warning: static property 'changesFlagsOnAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ///
66 | /// See `PipeliningRequirement`.
67 | public enum PipeliningBehavior: Hashable {
| `- note: consider making enum 'PipeliningBehavior' conform to the 'Sendable' protocol
68 | /// This command changes the _mailbox selection_.
69 | case changesMailboxSelection
:
98 | extension PipeliningBehavior {
99 | /// This command is changing flags on messages.
100 | public static let changesFlagsOnAnyMessage = PipeliningBehavior.changesFlags(.all)
| |- warning: static property 'changesFlagsOnAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'changesFlagsOnAnyMessage' 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
101 | /// This command is querying flags
102 | public static let readsFlagsFromAnyMessage = PipeliningBehavior.readsFlags(.all)
/host/spi-builder-workspace/Sources/NIOIMAPCore/Pipelining.swift:102:23: warning: static property 'readsFlagsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
65 | ///
66 | /// See `PipeliningRequirement`.
67 | public enum PipeliningBehavior: Hashable {
| `- note: consider making enum 'PipeliningBehavior' conform to the 'Sendable' protocol
68 | /// This command changes the _mailbox selection_.
69 | case changesMailboxSelection
:
100 | public static let changesFlagsOnAnyMessage = PipeliningBehavior.changesFlags(.all)
101 | /// This command is querying flags
102 | public static let readsFlagsFromAnyMessage = PipeliningBehavior.readsFlags(.all)
| |- warning: static property 'readsFlagsFromAnyMessage' is not concurrency-safe because non-'Sendable' type 'PipeliningBehavior' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'readsFlagsFromAnyMessage' 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
103 | }
104 |
[1142/1157] Wrapping AST for NIOIMAPCore for debugging
[1144/1169] Compiling NIOIMAP ResponseDecoder.swift
[1145/1170] Compiling NIOIMAP NIOIMAP.swift
[1146/1170] Compiling NIOIMAP IMAPClientHandler.swift
[1147/1170] Compiling NIOIMAP CommandDecoder.swift
[1148/1170] Compiling NIOIMAP CommandEncoder.swift
[1149/1170] Compiling NIOIMAP IMAPServerHandler.swift
[1150/1170] Compiling NIOIMAP FrameDecoder.swift
[1151/1170] Compiling NIOIMAP FramingParser.swift
[1152/1170] Compiling NIOIMAP AppendStateMachine.swift
[1153/1170] Compiling NIOIMAP AuthenticationStateMachine.swift
[1154/1170] Emitting module NIOIMAP
/host/spi-builder-workspace/Sources/NIOIMAP/Coders/ClientStateMachine.swift:47:16: warning: stored property 'command' of 'Sendable'-conforming struct 'InvalidCommandForState' has non-sendable type 'CommandStreamPart'; this is an error in the Swift 6 language mode
45 |
46 | public struct InvalidCommandForState: Error, Equatable {
47 | public var command: CommandStreamPart
| `- warning: stored property 'command' of 'Sendable'-conforming struct 'InvalidCommandForState' has non-sendable type 'CommandStreamPart'; this is an error in the Swift 6 language mode
48 |
49 | public init(_ command: CommandStreamPart) {
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Command/CommandStreamPart.swift:98:13: note: enum 'CommandStreamPart' does not conform to the 'Sendable' protocol
96 | /// session started by a previous idle `TaggedCommand`, and `.append(AppendCommand)`
97 | /// which is used to manage the lifecycle of appending multiple messages sequentially.
98 | public enum CommandStreamPart: Hashable {
| `- note: enum 'CommandStreamPart' does not conform to the 'Sendable' protocol
99 | /// Signals that a previous `idle` command has finished, and more
100 | /// commands will now be sent.
/host/spi-builder-workspace/Sources/NIOIMAP/Coders/ClientStateMachine.swift:16:24: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOIMAPCore'
14 |
15 | import NIO
16 | @_spi(NIOIMAPInternal) import NIOIMAPCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOIMAPCore'
17 |
18 | public struct InvalidClientState: Error {
[1155/1170] Compiling NIOIMAP IdleStateMachine.swift
/host/spi-builder-workspace/Sources/NIOIMAP/Coders/ClientStateMachine.swift:47:16: warning: stored property 'command' of 'Sendable'-conforming struct 'InvalidCommandForState' has non-sendable type 'CommandStreamPart'; this is an error in the Swift 6 language mode
45 |
46 | public struct InvalidCommandForState: Error, Equatable {
47 | public var command: CommandStreamPart
| `- warning: stored property 'command' of 'Sendable'-conforming struct 'InvalidCommandForState' has non-sendable type 'CommandStreamPart'; this is an error in the Swift 6 language mode
48 |
49 | public init(_ command: CommandStreamPart) {
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Command/CommandStreamPart.swift:98:13: note: enum 'CommandStreamPart' does not conform to the 'Sendable' protocol
96 | /// session started by a previous idle `TaggedCommand`, and `.append(AppendCommand)`
97 | /// which is used to manage the lifecycle of appending multiple messages sequentially.
98 | public enum CommandStreamPart: Hashable {
| `- note: enum 'CommandStreamPart' does not conform to the 'Sendable' protocol
99 | /// Signals that a previous `idle` command has finished, and more
100 | /// commands will now be sent.
/host/spi-builder-workspace/Sources/NIOIMAP/Coders/ClientStateMachine.swift:16:24: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOIMAPCore'
14 |
15 | import NIO
16 | @_spi(NIOIMAPInternal) import NIOIMAPCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOIMAPCore'
17 |
18 | public struct InvalidClientState: Error {
[1156/1170] Compiling NIOIMAP ClientStateMachine.swift
/host/spi-builder-workspace/Sources/NIOIMAP/Coders/ClientStateMachine.swift:47:16: warning: stored property 'command' of 'Sendable'-conforming struct 'InvalidCommandForState' has non-sendable type 'CommandStreamPart'; this is an error in the Swift 6 language mode
45 |
46 | public struct InvalidCommandForState: Error, Equatable {
47 | public var command: CommandStreamPart
| `- warning: stored property 'command' of 'Sendable'-conforming struct 'InvalidCommandForState' has non-sendable type 'CommandStreamPart'; this is an error in the Swift 6 language mode
48 |
49 | public init(_ command: CommandStreamPart) {
/host/spi-builder-workspace/Sources/NIOIMAPCore/Grammar/Command/CommandStreamPart.swift:98:13: note: enum 'CommandStreamPart' does not conform to the 'Sendable' protocol
96 | /// session started by a previous idle `TaggedCommand`, and `.append(AppendCommand)`
97 | /// which is used to manage the lifecycle of appending multiple messages sequentially.
98 | public enum CommandStreamPart: Hashable {
| `- note: enum 'CommandStreamPart' does not conform to the 'Sendable' protocol
99 | /// Signals that a previous `idle` command has finished, and more
100 | /// commands will now be sent.
/host/spi-builder-workspace/Sources/NIOIMAP/Coders/ClientStateMachine.swift:16:24: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOIMAPCore'
14 |
15 | import NIO
16 | @_spi(NIOIMAPInternal) import NIOIMAPCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOIMAPCore'
17 |
18 | public struct InvalidClientState: Error {
[1157/1173] Wrapping AST for NIOIMAP for debugging
[1159/1186] Emitting module NIOIMAPFuzzer
[1160/1186] Compiling NIOIMAPFuzzer main.swift
/host/spi-builder-workspace/Sources/NIOIMAPFuzzer/main.swift:21:5: error: main actor-isolated var 'buffer' can not be mutated from a nonisolated context
16 | import NIOIMAP
17 |
18 | var buffer = ByteBufferAllocator().buffer(capacity: 1000)
| `- note: mutation of this var is only permitted within the actor
19 |
20 | @_cdecl("LLVMFuzzerTestOneInput") public func fuzzMe(data: UnsafePointer<CChar>, size: CInt) -> CInt {
| `- note: add '@MainActor' to make global function 'fuzzMe(data:size:)' part of global actor 'MainActor'
21 | buffer.clear()
| `- error: main actor-isolated var 'buffer' can not be mutated from a nonisolated context
22 | buffer.writeBytes(UnsafeRawBufferPointer(start: UnsafeRawPointer(data), count: Int(size)))
23 | var parser = CommandParser()
/host/spi-builder-workspace/Sources/NIOIMAPFuzzer/main.swift:22:5: error: main actor-isolated var 'buffer' can not be mutated from a nonisolated context
16 | import NIOIMAP
17 |
18 | var buffer = ByteBufferAllocator().buffer(capacity: 1000)
| `- note: mutation of this var is only permitted within the actor
19 |
20 | @_cdecl("LLVMFuzzerTestOneInput") public func fuzzMe(data: UnsafePointer<CChar>, size: CInt) -> CInt {
| `- note: add '@MainActor' to make global function 'fuzzMe(data:size:)' part of global actor 'MainActor'
21 | buffer.clear()
22 | buffer.writeBytes(UnsafeRawBufferPointer(start: UnsafeRawPointer(data), count: Int(size)))
| `- error: main actor-isolated var 'buffer' can not be mutated from a nonisolated context
23 | var parser = CommandParser()
24 | do {
/host/spi-builder-workspace/Sources/NIOIMAPFuzzer/main.swift:25:31: error: main actor-isolated var 'buffer' can not be referenced from a nonisolated context
16 | import NIOIMAP
17 |
18 | var buffer = ByteBufferAllocator().buffer(capacity: 1000)
| `- note: var declared here
19 |
20 | @_cdecl("LLVMFuzzerTestOneInput") public func fuzzMe(data: UnsafePointer<CChar>, size: CInt) -> CInt {
| `- note: add '@MainActor' to make global function 'fuzzMe(data:size:)' part of global actor 'MainActor'
21 | buffer.clear()
22 | buffer.writeBytes(UnsafeRawBufferPointer(start: UnsafeRawPointer(data), count: Int(size)))
23 | var parser = CommandParser()
24 | do {
25 | var oldBytesRemaing = buffer.readableBytes
| `- error: main actor-isolated var 'buffer' can not be referenced from a nonisolated context
26 | var newBytesRemaining = 0
27 | while newBytesRemaining < oldBytesRemaing {
/host/spi-builder-workspace/Sources/NIOIMAPFuzzer/main.swift:28:31: error: main actor-isolated var 'buffer' can not be referenced from a nonisolated context
16 | import NIOIMAP
17 |
18 | var buffer = ByteBufferAllocator().buffer(capacity: 1000)
| `- note: var declared here
19 |
20 | @_cdecl("LLVMFuzzerTestOneInput") public func fuzzMe(data: UnsafePointer<CChar>, size: CInt) -> CInt {
| `- note: add '@MainActor' to make global function 'fuzzMe(data:size:)' part of global actor 'MainActor'
21 | buffer.clear()
22 | buffer.writeBytes(UnsafeRawBufferPointer(start: UnsafeRawPointer(data), count: Int(size)))
:
26 | var newBytesRemaining = 0
27 | while newBytesRemaining < oldBytesRemaing {
28 | oldBytesRemaing = buffer.readableBytes
| `- error: main actor-isolated var 'buffer' can not be referenced from a nonisolated context
29 | _ = try parser.parseCommandStream(buffer: &buffer)
30 | newBytesRemaining = buffer.readableBytes
/host/spi-builder-workspace/Sources/NIOIMAPFuzzer/main.swift:29:56: error: main actor-isolated var 'buffer' can not be used 'inout' from a nonisolated context
16 | import NIOIMAP
17 |
18 | var buffer = ByteBufferAllocator().buffer(capacity: 1000)
| `- note: mutation of this var is only permitted within the actor
19 |
20 | @_cdecl("LLVMFuzzerTestOneInput") public func fuzzMe(data: UnsafePointer<CChar>, size: CInt) -> CInt {
| `- note: add '@MainActor' to make global function 'fuzzMe(data:size:)' part of global actor 'MainActor'
21 | buffer.clear()
22 | buffer.writeBytes(UnsafeRawBufferPointer(start: UnsafeRawPointer(data), count: Int(size)))
:
27 | while newBytesRemaining < oldBytesRemaing {
28 | oldBytesRemaing = buffer.readableBytes
29 | _ = try parser.parseCommandStream(buffer: &buffer)
| `- error: main actor-isolated var 'buffer' can not be used 'inout' from a nonisolated context
30 | newBytesRemaining = buffer.readableBytes
31 | }
/host/spi-builder-workspace/Sources/NIOIMAPFuzzer/main.swift:30:33: error: main actor-isolated var 'buffer' can not be referenced from a nonisolated context
16 | import NIOIMAP
17 |
18 | var buffer = ByteBufferAllocator().buffer(capacity: 1000)
| `- note: var declared here
19 |
20 | @_cdecl("LLVMFuzzerTestOneInput") public func fuzzMe(data: UnsafePointer<CChar>, size: CInt) -> CInt {
| `- note: add '@MainActor' to make global function 'fuzzMe(data:size:)' part of global actor 'MainActor'
21 | buffer.clear()
22 | buffer.writeBytes(UnsafeRawBufferPointer(start: UnsafeRawPointer(data), count: Int(size)))
:
28 | oldBytesRemaing = buffer.readableBytes
29 | _ = try parser.parseCommandStream(buffer: &buffer)
30 | newBytesRemaining = buffer.readableBytes
| `- error: main actor-isolated var 'buffer' can not be referenced from a nonisolated context
31 | }
32 | } catch {
BUILD FAILURE 6.0 linux