Skip to content

Sema: Make "@retroactive attribute does not apply" a warning #71498

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

@tshortli tshortli commented Feb 9, 2024

Follow up to #71302.

Resolves rdar://122590301

@tshortli
Copy link
Contributor Author

tshortli commented Feb 9, 2024

@swift-ci please smoke test

@tshortli tshortli requested review from harlanhaskins, slavapestov, beccadax and hborla and removed request for xedin, slavapestov and hborla February 9, 2024 03:58
@tshortli tshortli enabled auto-merge February 9, 2024 04:38
ERROR(retroactive_attr_does_not_apply,none,
"'retroactive' attribute does not apply; %0 is declared in this module",
(Identifier))
WARNING(retroactive_attr_does_not_apply,none,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is specified in the proposal to be an error. How about we leave it as an error and use warnUntilSwiftVersion(6) to stage it in?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@harlanhaskins
Copy link
Contributor

Disabling the auto-merge per Doug’s comment — I’m okay with that but I also understand the urgency with which we need to downgrade this warning

@tshortli tshortli force-pushed the downgrade-retroactive-does-not-apply-to-warning branch from 11b1116 to a0b4d6d Compare February 9, 2024 06:16
@tshortli
Copy link
Contributor Author

tshortli commented Feb 9, 2024

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge February 9, 2024 06:33
@tshortli tshortli merged commit b5db452 into swiftlang:main Feb 9, 2024
@tshortli tshortli deleted the downgrade-retroactive-does-not-apply-to-warning branch February 9, 2024 21:17
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