Skip to content

[6.2] [Sema] Downgrade noasync diagnostic to warning for closure macro args #80910

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

Merged

Conversation

hamishknight
Copy link
Contributor

6.2 cherry-pick of #80853

  • Explanation: Downgrades the noasync usage diagnostic to a warning until a future language mode for closure macro arguments to mitigate the source breakage from [CS] Make sure macro arguments go through coerceCallArguments #80583.
  • Scope: Affects concurrency diagnostics
  • Issue: rdar://149328745
  • Risk: Low, downgrades a diagnostic
  • Testing: Added tests to test suite
  • Reviewer: Holly Borla

Introduce `Version::getFutureMajorLanguageVersion` to make it easier
to find clients that will need to be updated once we have a new
language mode.
Downgrade to a warning until the next language mode. This is
necessary since we previously missed coercing macro arguments to
parameter types, resulting in cases where closure arguments weren't
being treated as `async` when they should have been.

rdar://149328745
@hamishknight hamishknight added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Apr 18, 2025
@hamishknight hamishknight requested review from bnbarham and hborla April 18, 2025 15:43
@hamishknight hamishknight requested a review from a team as a code owner April 18, 2025 15:43
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight enabled auto-merge April 18, 2025 16:27
@hamishknight hamishknight merged commit 32a0454 into swiftlang:release/6.2 Apr 19, 2025
5 checks passed
@hamishknight hamishknight deleted the macro-async-warning-6.2 branch April 19, 2025 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants