Skip to content

ModuleInterface: Fix decl attribute corruption in private swiftinterfaces #59128

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

tshortli
Copy link
Contributor

Erroneous declaration attributes were sometimes being printed in the private swiftinterfaces of modules because the changes from #42276 were effectively corrupting the attribute list for any decl with sythesized conformances (e.g. Equatable, Hashable). It is necessary to clone the attributes before adding them to the synthesized conformance extension decls.

Resolves rdar://94009296

@tshortli tshortli requested review from xymus and nkcsgexi May 27, 2022 18:57
@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli tshortli force-pushed the inconsistent-attributes-in-private-swift-interfaces branch from 8cd64cc to 551464f Compare May 30, 2022 16:12
…aces

Erroneous declaration attributes were sometimes being printed in the private swiftinterfaces of modules because the changes from swiftlang#42276 were effectively corrupting the attribute list for any decl with sythesized conformances (e.g. `Equatable`, `Hashable`). It is necessary to clone the attributes before adding them to the synthesized conformance extension decls.

Resolves rdar://94009296
@tshortli tshortli force-pushed the inconsistent-attributes-in-private-swift-interfaces branch from 551464f to 7b1d4df Compare May 31, 2022 15:24
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli merged commit b79797e into swiftlang:main May 31, 2022
@tshortli tshortli deleted the inconsistent-attributes-in-private-swift-interfaces branch June 2, 2022 18:12
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.

3 participants