Skip to content

Commit 266432c

Browse files
committed
Fixes for clang importer tests that I missed
1 parent f02172a commit 266432c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/ClangImporter/transferring.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func funcTestTransferringResult() async {
2828
let x2 = NonSendableCStruct()
2929
let y2 = returnUserDefinedFromGlobalFunction(x2)
3030
await transferToMain(x2) // expected-error {{sending 'x2' risks causing data races}}
31-
// expected-note @-1 {{sending disconnected 'x2' to main actor-isolated callee could cause races in between callee main actor-isolated and local nonisolated uses}}
31+
// expected-note @-1 {{sending 'x2' to main actor-isolated global function 'transferToMain' risks causing data races between main actor-isolated and local nonisolated uses}}
3232
useValue(y2) // expected-note {{risks concurrent access}}
3333
}
3434

test/ClangImporter/transferring_objc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func funcTestTransferringResult() async {
4646
let x2 = NSObject()
4747
let y2 = returnNSObjectFromGlobalFunction(x2)
4848
await transferToMain(x2) // expected-error {{sending 'x2' risks causing data races}}
49-
// expected-note @-1 {{sending disconnected 'x2' to main actor-isolated callee could cause races in between callee main actor-isolated and local nonisolated uses}}
49+
// expected-note @-1 {{sending 'x2' to main actor-isolated global function 'transferToMain' risks causing data races between main actor-isolated and local nonisolated uses}}
5050
useValue(y2) // expected-note {{risks concurrent access}}
5151
}
5252

0 commit comments

Comments
 (0)