[Concurrency] Flip the implicitly async select in a concurrency error.

This diagnostic was presenting "implicitly async" for explicitly async calls,
and vice versa, because the `select` was incorrect.
This commit is contained in:
Holly Borla
2024-07-30 21:11:03 -07:00
parent 95cff2a9d6
commit d40663dd66
9 changed files with 20 additions and 20 deletions

View File

@@ -5655,7 +5655,7 @@ ERROR(non_sendable_result_type,none,
"%3 '@objc' %kind2}1 cannot cross actor boundary",
(Type, unsigned, const ValueDecl *, ActorIsolation))
ERROR(non_sendable_call_result_type,none,
"non-sendable type %0 returned by %select{implicitly asynchronous |}1"
"non-sendable type %0 returned by %select{|implicitly async }1"
"call to %2 function cannot cross actor boundary",
(Type, bool, ActorIsolation))
ERROR(non_sendable_property_type,none,