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 incorrect symbol definitions in SCIP output #17988

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

darichey
Copy link
Contributor

The SCIP output incorrectly marks some symbols as definitions because it doesn't account for the file ID when comparing the token's range to its definition's range.

This means that if a symbol is referenced in a file at the same position at which it is defined in another file, that reference will be marked as a definition. I was quite surprised by how common this is. For example, PartialEq is defined here and uuid references it here. And what do you know, they're both at offset 10083! In our large monorepo, this happens for basically every common stdlib type!

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

Veykril commented Aug 29, 2024

What a coincidence
@bors r+

@bors
Copy link
Collaborator

bors commented Aug 29, 2024

📌 Commit 2b31835 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Aug 29, 2024

⌛ Testing commit 2b31835 with merge fc08e04...

@bors
Copy link
Collaborator

bors commented Aug 29, 2024

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

@bors bors merged commit fc08e04 into rust-lang:master Aug 29, 2024
11 checks passed
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.

None yet

5 participants