Skip to content

Commit 09de428

Browse files
committed
Update test for new diagnostics.
This cherry-picked commit is from before we wordsmithed a few diagnostics. This commit just updates the test to match the new diagnostic text.
1 parent 95bbe8b commit 09de428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Concurrency/transfernonsendable_asynclet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,6 @@ func asyncLet_Let_ActorIsolated_Method() async {
788788
// expected-tns-note @-1 {{sending 'x' to actor-isolated instance method 'useKlass' risks causing data races between actor-isolated and local nonisolated uses}}
789789
// expected-complete-warning @-2 {{capture of 'x' with non-sendable type 'NonSendableKlass' in 'async let' binding}}
790790
// expected-complete-warning @-3 {{passing argument of non-sendable type 'NonSendableKlass' into actor-isolated context may introduce data races}}
791-
useValue(x) // expected-tns-note {{risks concurrent access}}
791+
useValue(x) // expected-tns-note {{access can happen concurrently}}
792792
let _ = await y
793793
}

0 commit comments

Comments
 (0)