Skip to content

Make SourceLocationConverter Sendable #2675

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 1 commit into from
Jun 12, 2024

Conversation

j-f1
Copy link
Contributor

@j-f1 j-f1 commented Jun 9, 2024

This type was not able to be marked as Sendable because its sourceLocationDirectives property was declared as a var. However, this property was never actually mutated. I changed the initializers to always assign it a value, removing the need for the default [] value and enabling it to change to a let.

@j-f1 j-f1 requested review from ahoppen and bnbarham as code owners June 9, 2024 15:45
@j-f1
Copy link
Contributor Author

j-f1 commented Jun 9, 2024

@swift-ci please test

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Thank you! Would you mind also creating a cherry-pick PR to release/6.0 for this?

@j-f1 j-f1 merged commit 9c0d170 into main Jun 12, 2024
3 checks passed
@j-f1 j-f1 deleted the jed/sendable-source-location-converter branch June 12, 2024 15:31
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