[Diagnostics] TildeSendable: Suggest Sendable suppression in explicit Senable warning

Add a note to missing explicit `Sendable` conformance warning
(produced by `-Wwarning ExplicitSendable`) and a fix-it with
a suggestion to suppress `Senable` conformance  via `~Sendable`.
This commit is contained in:
Pavel Yaskevich
2025-12-05 17:12:37 -08:00
parent 767c569f89
commit f0fd506745
3 changed files with 31 additions and 1 deletions

View File

@@ -8987,6 +8987,9 @@ NOTE(sendable_conformance_is_suppressed, none,
"%kind0 explicitly suppresses conformance to 'Sendable' protocol",
(const NominalTypeDecl *))
NOTE(suppress_sendable_conformance,none,
"consider suppressing conformance to 'Sendable' protocol", ())
ERROR(non_sendable_type_suppressed,none,
"cannot both conform to and suppress conformance to 'Sendable'", ())