Skip to content

Conversation

hamishknight
Copy link
Contributor

@hamishknight hamishknight commented Oct 13, 2025

Clients should be able to handle closures without a valid in SourceLoc, let's avoid setting it to a recovery location. This avoids crashing in cases where we set an in loc that's after the closure's end loc, fixing a stress tester regression from #84278.

Clients should be able to handle closures without a valid `in`
SourceLoc, let's avoid setting it to a recovery location. This avoids
crashing in cases where we set an `in` loc that's after the closure's
end loc.
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight
Copy link
Contributor Author

@swift-ci please SourceKit stress test

@hamishknight hamishknight merged commit b14dc22 into swiftlang:main Oct 14, 2025
6 checks passed
@hamishknight hamishknight deleted the loc-ness-monster branch October 14, 2025 08:16
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