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

Properly record meaningful imports as re-exports in symbol index #18967

Merged
merged 5 commits into from
Jan 20, 2025

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Jan 18, 2025

I somehow didn't realize that #18699 never fixed what it was supposed to fix. Probably because I accidentally expect updated the test.

The gist of this PR is that we now record all imports that have an explicit visibility set (or that exist in the crate-root), treating them as if they are re-exports (opposed to only treating rename imports as such). This in turn fixes the completion issue as the relevant import is now recorded.

I do fear this might have an impact on flyimport completion times as we have a lot more symbols to go through now, will investigate that before merging.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 18, 2025
@Veykril Veykril marked this pull request as ready for review January 20, 2025 13:27
@Veykril
Copy link
Member Author

Veykril commented Jan 20, 2025

A bit noisy of a commit history as there were a couple of bugs I encountered.

@Veykril Veykril added this pull request to the merge queue Jan 20, 2025
Merged via the queue into rust-lang:master with commit 93a5846 Jan 20, 2025
9 checks passed
@Veykril Veykril deleted the push-pwonkmwqmmol branch January 20, 2025 14:02
@Veykril
Copy link
Member Author

Veykril commented Jan 24, 2025

This seems to have some unintended side effects, symbol search now hangs for me in the salsa repo 😬

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.

2 participants