Skip to content

[Macros] Diagnose undocumented conformances in extension macro expansions. #67383

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
merged 1 commit into from
Jul 19, 2023

Conversation

hborla
Copy link
Member

@hborla hborla commented Jul 19, 2023

Extension macros can only add conformances that are documented in the conformances: list of the @attached(extension) attribute. Diagnose an error if the macro adds any conformances that are not documented.

Resolves rdar://112163965

@hborla hborla requested review from slavapestov and xedin as code owners July 19, 2023 01:09
@hborla
Copy link
Member Author

hborla commented Jul 19, 2023

@swift-ci please smoke test

@hborla hborla merged commit 769fc5d into swiftlang:main Jul 19, 2023
@hborla hborla deleted the diagnose-undocumented-conformances branch July 19, 2023 05:39
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.

2 participants