8000 Conform `MessageID` and `DiagnosticSeverity` to `Sendable` · swiftlang/swift-syntax@e9c6e0b · GitHub
[go: up one dir, main page]

Skip to content

Commit e9c6e0b

Browse files
stephencelisahoppen
authored andcommitted
Conform MessageID and DiagnosticSeverity to Sendable
1 parent e91826f commit e9c6e0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftDiagnostics/Message.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/// Two diagnostics with the same ID don’t need to necessarily have the exact
1717
/// same wording. Eg. it’s possible that the message contains more context when
1818
/// available.
19-
public struct MessageID: Hashable {
19+
public struct MessageID: Hashable, Sendable {
2020
private let domain: String
2121
private let id: String
2222

@@ -26,7 +26,7 @@ public struct MessageID: Hashable {
2626
}
2727
}
2828

29-
public enum DiagnosticSeverity {
29+
public enum DiagnosticSeverity: Sendable {
3030
case error
3131
case warning
3232
case note

0 commit comments

Comments
 (0)
0