Skip to content

Commit c25b39b

Browse files
committed
[region-isolation] Fix a test.
This is because in 1e4fe6c, we stopped transfering the function callee as well.
1 parent 1e4fe6c commit c25b39b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/Concurrency/sendable_checking.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,12 @@ func globalSendable(_ ns: NonSendable) async {}
288288
@available(SwiftStdlib 5.1, *)
289289
@MainActor
290290
func callNonisolatedAsyncClosure(
291-
ns: NonSendable, // expected-tns-note {{value is task isolated since it is in the same region as 'ns'}}
291+
ns: NonSendable,
292292
g: (NonSendable) async -> Void
293293
) async {
294294
await g(ns)
295295
// expected-targeted-and-complete-warning @-1 {{passing argument of non-sendable type 'NonSendable' outside of main actor-isolated context may introduce data races}}
296296
// expected-tns-warning @-2 {{task isolated value of type 'NonSendable' transferred to nonisolated context; later accesses to value could race}}
297-
// expected-tns-warning @-3 {{task isolated value of type '@noescape @async @callee_guaranteed (@guaranteed NonSendable) -> ()' transferred to nonisolated context; later accesses to value could race}}
298297

299298
let f: (NonSendable) async -> () = globalSendable // okay
300299
await f(ns)

0 commit comments

Comments
 (0)