Skip to content

Commit cdc7727

Browse files
authored
Merge pull request #66948 from DougGregor/sendable-subtype-convertible-fixes-5.9
2 parents 306a646 + 7f1aa30 commit cdc7727

17 files changed

+466
-262
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5163,13 +5163,13 @@ WARNING(non_sendable_param_type,none,
51635163
"non-sendable type %0 %select{passed in call to %4 %2 %3|"
51645164
"exiting %4 context in call to non-isolated %2 %3|"
51655165
"passed in implicitly asynchronous call to %4 %2 %3|"
5166-
"in parameter of %4 %2 %3 satisfying protocol requirement|"
5167-
"in parameter of %4 overriding %2 %3|"
5166+
"in parameter of the protocol requirement satisfied by %4 %2 %3|"
5167+
"in parameter of superclass method overridden by %4 %2 %3|"
51685168
"in parameter of %4 '@objc' %2 %3}1 cannot cross actor boundary",
51695169
(Type, unsigned, DescriptiveDeclKind, DeclName, ActorIsolation))
5170-
WARNING(non_sendable_call_param_type,none,
5171-
"non-sendable type %0 passed in %select{implicitly asynchronous |}1"
5172-
"call to %2 function cannot cross actor boundary",
5170+
WARNING(non_sendable_call_argument,none,
5171+
"passing argument of non-sendable type %0 %select{into %2 context|"
5172+
"outside of %2 context}1 may introduce data races",
51735173
(Type, bool, ActorIsolation))
51745174
WARNING(non_sendable_result_type,none,
51755175
"non-sendable type %0 returned by %select{call to %4 %2 %3|"

0 commit comments

Comments
 (0)