Skip to content

Conversation

@mattt
Copy link
Collaborator

@mattt mattt commented Sep 25, 2025

This PR fixes Swift 6 compiler warnings by adding Sendable conformance and @MainActor annotations to resolve new compiler errors that arise when building the package in Swift 6 language mode. Along the way, it fixes an existing data race in PreTrainedTokenizer.

@mattt mattt marked this pull request as ready for review September 25, 2025 12:08
@mattt mattt changed the title Fix Swift 6 concurrency errors Upgrade package to Swift 6 Sep 25, 2025
@mattt mattt requested review from FL33TW00D and pcuenca September 25, 2025 12:20
@mattt

This comment was marked as outdated.

@mattt mattt changed the title Upgrade package to Swift 6 Fix Swift 6 concurrency errors Sep 25, 2025
Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

🙌

@mattt mattt force-pushed the mattt/swift-6 branch 2 times, most recently from 6171bb5 to 5a00a6c Compare September 25, 2025 13:31
@mattt mattt merged commit 3f9bb8b into main Sep 25, 2025
2 checks passed
@mattt mattt deleted the mattt/swift-6 branch September 25, 2025 13:42
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