Skip to content

Commit 6d58bce

Browse files
authored
Merge pull request #66928 from DougGregor/unify-call-isolation-checking
2 parents 972fa69 + 11dd80a commit 6d58bce

14 files changed

+179
-198
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5239,9 +5239,9 @@ WARNING(non_sendable_param_type,none,
52395239
"in parameter of superclass method overridden by %4 %2 %3|"
52405240
"in parameter of %4 '@objc' %2 %3}1 cannot cross actor boundary",
52415241
(Type, unsigned, DescriptiveDeclKind, DeclName, ActorIsolation))
5242-
WARNING(non_sendable_call_param_type,none,
5243-
"non-sendable type %0 passed in %select{implicitly asynchronous |}1"
5244-
"call to %2 function cannot cross actor boundary",
5242+
WARNING(non_sendable_call_argument,none,
5243+
"passing argument of non-sendable type %0 %select{into %2 context|"
5244+
"outside of %2 context}1 may introduce data races",
52455245
(Type, bool, ActorIsolation))
52465246
WARNING(non_sendable_result_type,none,
52475247
"non-sendable type %0 returned by %select{call to %4 %2 %3|"

0 commit comments

Comments
 (0)