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 scip indexing of module names #19062

Merged
merged 4 commits into from
Feb 3, 2025

Conversation

darichey
Copy link
Contributor

@darichey darichey commented Jan 28, 2025

  • Fix an overflow in computing is_inherent_impl (moniker.identifier.description.len() - 2). No behavior change, just annoying when trying to debug.
  • Fix missing symbol name for occurrences of crate. Where we previously emitted, e.g., { "range": [ 5, 4, 9 ] }, we will now emit { "range": [ 5, 4, 9 ], "symbol": "rust-analyzer cargo foo . crate/" }.
  • Fix missing symbols for implicit module names. We previously emitted occurrences of module names but not the actual symbol definitions for modules implicitly defined by files.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 28, 2025
@darichey darichey force-pushed the scip-fix-module-names branch from e6be538 to 9462322 Compare January 28, 2025 16:14
@Veykril Veykril enabled auto-merge January 28, 2025 16:21
auto-merge was automatically disabled January 28, 2025 16:44

Head branch was pushed to by a user without write access

@darichey
Copy link
Contributor Author

This also affects LSIF output. The changes look reasonable, but I don't know how to verify they are correct. cc @Urhengulas

@darichey
Copy link
Contributor Author

or @Veykril since you added the final version of the lsif_contains_generated_constant test.

@Veykril Veykril added this pull request to the merge queue Feb 3, 2025
Merged via the queue into rust-lang:master with commit b7b09d2 Feb 3, 2025
9 checks passed
@lnicola lnicola changed the title Fix scip indexing of module names fix: Fix scip indexing of module names Feb 3, 2025
@darichey darichey deleted the scip-fix-module-names branch February 3, 2025 17:41
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.

3 participants