Skip to content

Don't print conformance attributes redundantly in -preserve-types-as-written mode #71687

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

rjmccall
Copy link
Contributor

Since we no longer remove these attributes from the AttributedTypeRepr, if we print based on the TypeRepr, we'll print them twice. The best solution is to only print the attributes based on the inheritance clause if we're not printing the type based on the TypeRepr.

Fixes rdar://122965951

…written.

Since we no longer remove these attributes from the AttributedTypeRepr,
if we print based on the TypeRepr, we'll print them twice.  The best
solution is to only print the attributes based on the inheritance clause
if we're not printing the type based on the TypeRepr.

Fixes rdar://122965951.
@rjmccall
Copy link
Contributor Author

@swift-ci Please test

@rjmccall rjmccall merged commit e1fdb00 into swiftlang:main Feb 17, 2024
@rjmccall rjmccall deleted the eliminate-conformance-attribute-redundancies branch February 17, 2024 01:20
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