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

fix: Fix inlay hint resolution being broken #17063

Merged
merged 1 commit into from Apr 14, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Apr 14, 2024

So, things broke because we now store a hash (u64) in the resolution payload, but javascript and hence JSON only support integers of up to 53 bits (anything beyond gets truncated in various ways) which caused almost all hashes to always differ when resolving them. This masks the hash to 53 bits to work around that.

Fixes #16962

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 14, 2024
@Veykril
Copy link
Member Author

Veykril commented Apr 14, 2024

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 14, 2024

📌 Commit 8e2d23b has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Apr 14, 2024

⌛ Testing commit 8e2d23b with merge adab945...

bors added a commit that referenced this pull request Apr 14, 2024
fix: Fix inlay hint resolution being broken

So, things broke because we now store a hash (u64) in the resolution payload, but javascript and hence JSON only support integers of up to 53 bits (anything beyond gets truncated in various ways) which caused almost all hashes to always differ when resolving them. This masks the hash to 53 bits to work around that.

Fixes #16962
@Veykril
Copy link
Member Author

Veykril commented Apr 14, 2024

@bors r+

@bors
Copy link
Collaborator

bors commented Apr 14, 2024

📌 Commit 2c5c12a has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Apr 14, 2024

⌛ Testing commit 2c5c12a with merge 7dad0a2...

@bors
Copy link
Collaborator

bors commented Apr 14, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 7dad0a2 to master...

@bors bors merged commit 7dad0a2 into rust-lang:master Apr 14, 2024
11 checks passed
@Veykril Veykril deleted the inlay-hints-fix branch April 14, 2024 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type inlays are not clickable anymore (since 2024-03-24 release)
3 participants