Skip to content

Fix warnings about Equatable conformance#883

Merged
sbooth merged 7 commits intomainfrom
retroactive
Mar 31, 2026
Merged

Fix warnings about Equatable conformance#883
sbooth merged 7 commits intomainfrom
retroactive

Conversation

@sbooth
Copy link
Copy Markdown
Owner

@sbooth sbooth commented Feb 26, 2026

By using the fully-qualified type names the warning is suppressed without the need for the retroactive attribute.

Copilot AI review requested due to automatic review settings February 26, 2026 23:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds the @retroactive attribute to Equatable protocol conformances for PlaybackTime and PlaybackPosition types to suppress Swift 6 compiler warnings about retroactive conformances. These types are C structs imported from the CSFBAudioEngine module that are being extended with protocol conformances in the Swift wrapper layer.

Changes:

  • Added @retroactive to Equatable conformance for PlaybackTime
  • Added @retroactive to Equatable conformance for PlaybackPosition

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Sources/SFBAudioEngine/SFBPlaybackTime.swift Adds @retroactive attribute to Equatable conformance for the imported PlaybackTime struct
Sources/SFBAudioEngine/SFBPlaybackPosition.swift Adds @retroactive attribute to Equatable conformance for the imported PlaybackPosition struct

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sbooth sbooth changed the title Add retroactive to Equatable conformance to fix compiler warnings Fix compiler warnings about Equatable conformance Mar 30, 2026
@sbooth sbooth requested a review from Copilot March 30, 2026 20:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sbooth sbooth changed the title Fix compiler warnings about Equatable conformance Fix warnings about Equatable conformance Mar 30, 2026
@sbooth sbooth merged commit af4370e into main Mar 31, 2026
1 check passed
@sbooth sbooth deleted the retroactive branch March 31, 2026 15:50
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