Skip to content

[SourceKit] SourceKitdUID: Implement hash(into:) rather than hashValue #20868

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
Nov 30, 2018

Conversation

lorentey
Copy link
Member

(This PR was originally part of #20685.)

SE-0206 deprecated hashValue as a Hashable requirement. This PR updates SourceKit to migrate to the new hashing interface, hash(into:). The change will make SourceKitUIDs hash a little faster, but otherwise, it's effectively NFC.

I plan to add a compiler warning for hashValue-based Hashable conformances; this is a preemptive fix for that warning.

@lorentey
Copy link
Member Author

@swift-ci please test

@lorentey lorentey requested a review from nkcsgexi November 29, 2018 18:59
Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

LGTM, could you also update swift-syntax repo too? it's here

@lorentey
Copy link
Member Author

@nkcsgexi Good catch, thanks! I filed swiftlang/swift-syntax#48

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 36f0484

@lorentey
Copy link
Member Author

Linux failure is unrelated; rerunning smoke tests on the platform.

@swift-ci smoke test

@lorentey lorentey merged commit e4cdd80 into swiftlang:master Nov 30, 2018
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