Skip to content

[NFC] Fix some of the new Swift main snapshots warnings #7214

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
Jan 2, 2024

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Dec 21, 2023

Motivation:

Swift snapshots off main warn about @retroactive attribute not present on retroactively added protocol conformance, i.e. when a type and a protocol it conforms to are coming from different modules.

Modifications:

Added @retroactive attribute conditionally when built with Swift versions lower than 5.10. Also fixed a few other warnings that were introduced recently with an unused let binding and an unused Comparable conformance.

Result:

Reduced number of warnings when building with Swift main snapshots. New concurrency warnings appearing in Swift main are untouched here, as they require much more invasive changes to fix Sendable conformances.

Added `@retroactive` attribute conditionally when built with Swift 5.10. Also fixed a few other warnings that were introduced recently with an unused `let` binding and an unused `Comparable` conformance.
@MaxDesiatov MaxDesiatov added the no functional change No user-visible functional changes included label Dec 21, 2023
@MaxDesiatov MaxDesiatov self-assigned this Dec 21, 2023
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov changed the title [NFC] Fix some of the new Swift 5.10 warnings [NFC] Fix some of the new Swift main warnings Dec 21, 2023
@MaxDesiatov MaxDesiatov changed the title [NFC] Fix some of the new Swift main warnings [NFC] Fix some of the new Swift main snapshots warnings Dec 21, 2023
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov requested a review from neonichu December 21, 2023 18:00
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor Author

@swift-ci test windows

@MaxDesiatov MaxDesiatov merged commit ace3488 into main Jan 2, 2024
@MaxDesiatov MaxDesiatov deleted the maxd/fix-5.10-warnings branch January 2, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no functional change No user-visible functional changes included
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants