Skip to content

Commit 7dbec84

Browse files
committed
[NFC] Update a few tests for concurrency diagnostics changes.
1 parent 976d921 commit 7dbec84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Sema/moveonly_sendable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func processFiles(_ a: A, _ anotherFile: borrowing FileDescriptor) async {
4848
await a.takeMaybeFile(.available(anotherFile))
4949
_ = A(.available(anotherFile))
5050

51-
let ns = await a.getRef() // expected-warning {{non-sendable type 'NotSendableMO' returned by implicitly async call to actor-isolated function cannot cross actor boundary}}
51+
let ns = await a.getRef() // expected-warning {{non-sendable result type 'NotSendableMO' cannot be sent from actor-isolated context in call to instance method 'getRef()'}}
5252
await takeNotSendable(ns) // expected-complete-warning {{passing argument of non-sendable type 'NotSendableMO' outside of main actor-isolated context may introduce data races}}
5353

5454
switch (await a.giveFileDescriptor()) {

validation-test/Sema/SwiftUI/rdar76252310.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func fromConcurrencyAware() async {
4242
let view = CoffeeTrackerView() // synthesized 'init' is 'nonisolated'
4343

4444
// expected-note@+3 {{property access is 'async'}}
45-
// expected-warning@+2 {{non-sendable type 'some View' in implicitly asynchronous access to main actor-isolated property 'body' cannot cross actor boundary}}
45+
// expected-warning@+2 {{non-sendable type 'some View' of property 'body' cannot exit main actor-isolated context}}
4646
// expected-warning@+1 {{expression is 'async' but is not marked with 'await'}}
4747
_ = view.body
4848

0 commit comments

Comments
 (0)