-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[AST/Sema] Add a diagnostic group ExplicitSendable to replace -require-explicit-sendable
#85319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@swift-ci please test |
…uire-explicit-sendable` Always run explicit `Sendable` checks on public types and suppress warning printing by default instead of using a special compiler argument. Resolves: rdar://162394810
…rning ExplicitSendable`
|
@swift-ci please test |
DougGregor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thank you!
|
@swift-ci please test Windows platform |
1 similar comment
|
@swift-ci please test Windows platform |
| if (Args.hasArg(OPT_require_explicit_sendable) && | ||
| !Args.hasArg(OPT_suppress_warnings)) { | ||
| Opts.WarningsAsErrorsRules.push_back(WarningAsErrorRule( | ||
| WarningAsErrorRule::Action::Disable, "ExplicitSendable")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i find this slightly confusing based just on the naming of things... does 'disable' in this context mean the 'by default ignored warning' behavior is what's being disabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@artemcm is working on improvements to these APIs at the moment.
Always run explicit
Sendablechecks on public types and suppresswarning printing by default instead of using a special compiler argument.
Resolves: rdar://162394810