Swift Generated Code: Add @unchecked Sendable conformance to classes that conform to FeatureManifestInterface
#6963
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello! This is my first PR to your repo, I've been working on this with @issammani. The iOS team needs to update
/Generatedcode in Firefox for iOS to solve some strict concurrency warnings inside our generated code. These warnings will become errors in Swift 6.0.Here is the ticket on our end: FXIOS-13577
This ticket contains detailed information about the concurrency issues with screenshots of the errors we are getting.
Implementation Details
This PR adds
@unchecked Sendableto Swift classes that conform toFeatureManifestInterface, which suppresses strict concurrency warnings related to non-Sendabletypes containing mutable state.Using
@unchecked Sendablesimply maintains existing behaviour and does not change any behaviour.While we can suppress these errors for now, ideally these
FeatureManifestInterface-conforming classes should be updated in the future to be compliant with Swift Concurrency's rules for concurrency-safe code.Followup ticket: FXIOS-13579.
Pull Request checklist
[ci full]to the PR title.