swift
933f8eb8 - [Concurrency] Split up the non-Sendable argument diagnostics and improve

Commit
357 days ago
[Concurrency] Split up the non-Sendable argument diagnostics and improve wording. Splitting up the diagnostic into separate diagnostics based on the reference kind is easier for me to read. The wording of the error message now puts the problem -- crossing an isolation boundary -- at the center of the message, and attempts to clarify how the value crosses an isolation boundary. E.g. for the witness diagnostics, the value crosses an isolation boundary when calling the witness through the protocol requirement in generic code. This change does not add any additional information to the diagnostics, but it'd be valuable to show both the source and destination isolation.
Author
Committer
Parents
  • include/swift/AST
    • File
      DiagnosticsSema.def
  • lib/Sema
    • File
      TypeCheckConcurrency.cpp
  • test/Concurrency
    • File
      actor_inout_isolation.swift
    • File
      actor_isolation.swift
    • File
      actor_isolation_swift6.swift
    • File
      concurrent_value_checking.swift
    • File
      global_actor_serialized.swift
    • File
      sendable_checking.swift
    • File
      sendable_override_checking.swift