-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Refactor FXIOS-13502 [Swift 6 Migration] Fix or suppress Sendable and misc. warnings in MozillaRustComponents (round 1)
#29425
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
| public static func string(for keys: [Int32]) throws -> String { | ||
| let optionalString = try data(for: keys).withUnsafeBufferPointer { dataPointer -> String? in | ||
| dataPointer.baseAddress.flatMap { String(validatingUTF8: $0) } | ||
| dataPointer.baseAddress.flatMap { String(validatingCString: $0) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this change necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good eye! This has nothing to do with strict concurrency, but Xcode was showing me a deprecation warning and auto fixed to change to this version. 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok wanted to double-check! Works for me 👍
f2dee42 to
5cd7e80
Compare
|
This change causes some warnings in the Client/Generated folder. On Monday I have a meeting to investigate how we can get the generated code to add |
|
PR submitted to AS to add |
|
PR has been merged so we should be able to pull in the changes via AS in the next day or two to unblock us on these warnings in the Client/Generated folder. |
e24998a to
a78b477
Compare
…l so the Client can reason better about main actor isolation.
5cd7e80 to
d4e989f
Compare
|
@issammani accepted the AS changes here: #29585 Going to rebase and see where we're at! Hopefully the Client/Generated warnings are resolved now. |
🥇 Perfect PR sizeSmaller PRs are easier to review. Thanks for making life easy for reviewers! ✨ 💬 Description craftsmanGreat PR description! Reviewers salute you 🫡 Generated by 🚫 Danger Swift against d4e989f |
… from last week (#5) (#29657) * Refactor FXIOS-13511 [Swift 6] Remove Equatable from AppState and other redux states (#29495) * Remove unneeded equatable conformance on redux states * Fix tests * Fix test * Refactor FXIOS-13532 [Swift 6 Migration] Fix strict concurrency errors related to Notifications (#29514) Fun stuff * Refactor FXIOS-13502 [Swift 6 Migration] Fix main actor isolation warnings in MozillaRustComponents (#29426) "Fix" main actor isolation warnings in MozillaRustComponents with a workaround for setting accessibility identifiers to prevent larger impacts and errors in Client generated code. * Refactor FXIOS-13511 [Swift 6] Move Tab to MainActor and resolve strict concurrency warnings (#29497) * Refactor FXIOS-13511 [Swift 6] Remove Equatable from AppState and other redux states (#29495) * Remove unneeded equatable conformance on redux states * Fix tests * Fix test * Refactor FXIOS-13532 [Swift 6 Migration] Fix strict concurrency errors related to Notifications (#29514) Fun stuff * first pass of isolating tab to the main actor * Clean up tests and push commented out code * fix additional warnings * Clean up remaining warnings * fix tests * add missing ticket numbers * resolve introduced warning --------- Co-authored-by: lmarceau <lmarceau@mozilla.com> * Refactor FXIOS-13532 #29411 [Swift 6 Migration] AppDelegate + PushNotification (#29590) * Fix for Constellation update * Fix UNUserNotificationCenterDelegate methods * Fix tests * Refactor FXIOS-13235 [Swift 6 Migration] Enable strict concurrency checking in SummarizerKit (#29575) * Enable strict concurrency in SummarizerKit. * Fix closure `Sendable` warnings. * Fix some other warnings. Suppress others with FIXME tickets. * Refactor FXIOS-13463 #29256 [Swift 6 Migration] WebEngine @mainactor (#29393) * Policy decider * Make main actor * @mainactor stuff * Fix the tests * Adjust Client * Add ticket number * Adjust following comments * Refactor FXIOS-12796 [Swift 6 Migration] Fix more under-specified protocols (#29650) * Fix under-specified protocols: AddressToolbarDelegate, EmptyPrivateTabView, InsetUpdatable, PhotonActionSheetContainerCellDelegate, NavigationController. * Fix unit tests. * Refactor FXIOS-13502 [Swift 6 Migration] Fix or suppress `Sendable` and misc. warnings in MozillaRustComponents (round 1) (#29425) * Fix or suppress Sendable warnings in MozillaRustComponents. * Janky workaround for main actor isolation warning. * Update some Rust Components Sendable callbacks with @mainactor as well so the Client can reason better about main actor isolation. * Refactor FXIOS-13511 [Swift 6] Additional Strict Concurrency Clean up for Tab and Friends (#29628) * Additional tab clean up * Isolate UserScriptManager to main actor * fix tests * turn off strict concurrency * more main actor isolation * resolve introduced warnings --------- Co-authored-by: Carson Ramsden <carsonramsden@gmail.com> Co-authored-by: lmarceau <lmarceau@mozilla.com>
📜 Tickets
Jira ticket
Github issue
💡 Description
Fix or suppress Sendable warnings in MozillaRustComponents.
I'm just checking if this can satisfy Bitrise or if we're going to run into issues...
P.S. I opened the MozillaRustComponents package folder inside Xcode (instead of Client), and switched the package file to compile with 5.10 and the strict concurrency flags. I then had to delete Derived Data before I started seeing warnings properly in Xcode 26 release build. I had more issues in Xcode 26 RC.
cc @Cramsden @lmarceau @dataports | Swift 6 Migration
📝 Checklist
@Mergifyio backport release/v150.0)