Skip to content

[6.1] [Sema] Downgrade implicit self diag to warning for macro args #78550

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

@hamishknight hamishknight commented Jan 10, 2025

6.1 cherry-pick of #78545

  • Explanation: Downgrades the implicit self diagnostic to a warning for Swift 7
  • Scope: Affects the implicit self diagnostic logic
  • Issue: rdar://141963700
  • Risk: Low, downgrades an existing diagnostic
  • Testing: Added tests to test suite
  • Reviewer: Pavel Yaskevich

I need to add a method with a template, and C++
doesn't support that in local classes.
We previously missed diagnosing this for macro
args, fixing it turned out to be a bit more source
breaking than initially thought though, so downgrade
to a warning until Swift 7.

rdar://141963700
@hamishknight hamishknight added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.1 labels Jan 10, 2025
@hamishknight hamishknight requested a review from bnbarham January 10, 2025 17:50
@hamishknight hamishknight requested a review from a team as a code owner January 10, 2025 17:50
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit 8b3fe89 into swiftlang:release/6.1 Jan 11, 2025
5 checks passed
@hamishknight hamishknight deleted the warn-misc-macro-arg-6.1 branch January 11, 2025 10:56
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.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants