Merge pull request #85319 from xedin/rdar-162394810

[AST/Sema] Add a diagnostic group `ExplicitSendable` to replace `-require-explicit-sendable`
This commit is contained in:
Pavel Yaskevich
2025-11-06 06:48:50 -08:00
committed by GitHub
8 changed files with 48 additions and 9 deletions

View File

@@ -2857,9 +2857,9 @@ WARNING(remove_public_import,none,
WARNING(remove_package_import,none,
"package import of %0 was not used in package declarations",
(Identifier))
WARNING(public_decl_needs_sendable,none,
"public %kind0 does not specify whether it is 'Sendable' or not",
(const ValueDecl *))
GROUPED_WARNING(public_decl_needs_sendable,ExplicitSendable,none,
"public %kind0 does not specify whether it is 'Sendable' or not",
(const ValueDecl *))
NOTE(explicit_disable_sendable,none,
"make %kind0 explicitly non-Sendable to suppress this warning",
(const ValueDecl *))