Skip to content

[Conformance] Always downgrade redundant conformances to marker protocols to a warning. #75425

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 2 commits into from
Jul 24, 2024

Conversation

hborla
Copy link
Member

@hborla hborla commented Jul 23, 2024

Previous compiler versions allowed this, so we should stage the change in as a warning. This was already a warning across modules, so this change only impacts redundant conformances to marker protocols within a module. This code also isn't particularly harmful, because marker protocols don't have requirements, so there isn't the same risk of unexpected behavior as other redundant conformances.

…cols to

a warning.

Previous compiler versions allowed this, so we should stage the change in as
a warning. This was already a warning across modules, so this change only impacts
redundant conformances to marker protocols within a module. This code also isn't
particularly harmful, because marker protocols don't have requirements, so there
isn't the same risk of unexpected behavior as other redundant conformances.
@hborla hborla force-pushed the redundant-copyable branch from 141ee5a to 5eb16ad Compare July 23, 2024 21:08
@hborla
Copy link
Member Author

hborla commented Jul 23, 2024

@swift-ci please smoke test

@hborla
Copy link
Member Author

hborla commented Jul 23, 2024

@swift-ci please smoke test

@ahoppen ahoppen removed their request for review July 24, 2024 02:46
@hborla hborla merged commit 1527139 into swiftlang:main Jul 24, 2024
3 checks passed
@hborla hborla deleted the redundant-copyable branch July 24, 2024 03:55
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