You can still get some of the benefits by, e.g., marking your own types as Sendable or not, which will trigger warnings for any of their non-Sendable instance storage. It's certainly not as comprehensive as the full suite of warnings.

-warn-concurrency might not be the right name; it's applying stricter logic for concurrency-related checks across the entire module, not just in code that has "adopted concurrency."

If it's wrong, or if the errors are indeed not fixable, please file bugs so we can improve it!

I'm hesitant to do this because each "level" flag is essentially its own dialect. I'd consider adding a new level in between "default warnings" and "-warn-concurrency" to be a fallback plan if the default warnings cannot be made to be more focused and actionable in a reasonable time frame.

Doug

2 Likes