mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Update diagnostic text to address code review feedback
This commit is contained in:
@@ -106,7 +106,7 @@ protocol StrictlyLocal {
|
||||
}
|
||||
|
||||
distributed actor Nope1_StrictlyLocal: StrictlyLocal {
|
||||
// expected-note@-1{{add '@preconcurrency' to the 'StrictlyLocal' conformance to suppress isolation-related diagnostics}}
|
||||
// expected-note@-1{{add '@preconcurrency' to the 'StrictlyLocal' conformance to defer isolation checking to run time}}
|
||||
|
||||
func local() {}
|
||||
// expected-error@-1{{distributed actor-isolated instance method 'local()' cannot be used to satisfy nonisolated protocol requirement}}
|
||||
@@ -159,7 +159,7 @@ actor LocalOK_ImplicitlyThrowsAsync_AsyncThrowsAll: AsyncThrowsAll {
|
||||
}
|
||||
|
||||
distributed actor Nope1_AsyncThrowsAll: AsyncThrowsAll {
|
||||
// expected-note@-1{{add '@preconcurrency' to the 'AsyncThrowsAll' conformance to suppress isolation-related diagnostics}}
|
||||
// expected-note@-1{{add '@preconcurrency' to the 'AsyncThrowsAll' conformance to defer isolation checking to run time}}
|
||||
|
||||
func maybe(param: String, int: Int) async throws -> Int { 111 }
|
||||
// expected-error@-1{{distributed actor-isolated instance method 'maybe(param:int:)' cannot be used to satisfy nonisolated protocol requirement}}
|
||||
@@ -206,7 +206,7 @@ func test_watching_A(a: A_TerminationWatchingA) async throws {
|
||||
}
|
||||
|
||||
distributed actor DA_TerminationWatchingA: TerminationWatchingA {
|
||||
// expected-note@-1{{add '@preconcurrency' to the 'TerminationWatchingA' conformance to suppress isolation-related diagnostics}}
|
||||
// expected-note@-1{{add '@preconcurrency' to the 'TerminationWatchingA' conformance to defer isolation checking to run time}}
|
||||
|
||||
func terminated(a: String) { }
|
||||
// expected-error@-1{{distributed actor-isolated instance method 'terminated(a:)' cannot be used to satisfy nonisolated protocol requirement}}
|
||||
|
||||
Reference in New Issue
Block a user