mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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'", ())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user