Skip to content

[5.9] Don't visit synthesized extensions twice. #65292

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

DougGregor
Copy link
Member

  • Explanation: Teach getTopLevelDeclsWithAuxiliaryDecls not to provide extension declarations, because those are covered by the synthesized file, which all clients need to walk anyway. Without this, we end up asserting in TBD generation about duplicate symbol visitation.
  • Scope: Affects code using conformance macros.
  • Risk: Low, narrowly applied to macros to squelch an assertion.
  • Issue: rdar://108056018
  • Original pull request: Don't visit synthesized extensions twice. #65291

Teach `getTopLevelDeclsWithAuxiliaryDecls` not to provide extension
declarations, because those are covered by the synthesized file, which
all clients need to walk anyway. Without this, we end up asserting in
TBD generation about duplicate symbol visitation.

Encountered while investigating rdar://108056018.
@DougGregor DougGregor requested a review from a team as a code owner April 19, 2023 18:02
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit d955b16 into swiftlang:release/5.9 Apr 19, 2023
@DougGregor DougGregor deleted the top-level-aux-without-extensions-5.9 branch April 19, 2023 23:49
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants