Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Nov 4, 2025

Always run explicit Sendable checks on public types and suppress
warning printing by default instead of using a special compiler argument.

Resolves: rdar://162394810

@xedin
Copy link
Contributor Author

xedin commented Nov 4, 2025

@swift-ci please test

xedin added 2 commits November 4, 2025 17:53
…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
@xedin
Copy link
Contributor Author

xedin commented Nov 5, 2025

@swift-ci please test

Copy link
Member

@DougGregor DougGregor left a 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!

@xedin
Copy link
Contributor Author

xedin commented Nov 5, 2025

@swift-ci please test Windows platform

1 similar comment
@xedin
Copy link
Contributor Author

xedin commented Nov 6, 2025

@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"));
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@xedin xedin merged commit e39a31a into swiftlang:main Nov 6, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants