Skip to content
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

Support building swift-format using SwiftPM for toolchain builds on Windows #841

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 7, 2024

This allows us to also run tests of swift-format on Windows.

…indows

This allows us to also run tests of swift-format on Windows.
Comment on lines +89 to +91
var first = first
first.leadingTrivia = trimmedLeadingTrivia
result[index] = first
Copy link
Member Author

Choose a reason for hiding this comment

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

I haven’t had a chance to reduce the failure but I think test execution crashes with the previous code due to swiftlang/swift#67676.

Copy link
Member

Choose a reason for hiding this comment

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

This is fine anyway, I've come to mildly disfavor the bespoke with methods and just use normal value type mutation for operations like this.

Comment on lines +89 to +91
var first = first
first.leadingTrivia = trimmedLeadingTrivia
result[index] = first
Copy link
Member

Choose a reason for hiding this comment

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

This is fine anyway, I've come to mildly disfavor the bespoke with methods and just use normal value type mutation for operations like this.

@ahoppen ahoppen merged commit bc1e395 into swiftlang:main Oct 8, 2024
13 checks passed
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