Skip to content

internal: ensure a Salsa-ified crate graph works with project discovery #19523

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

Conversation

davidbarsky
Copy link
Contributor

@davidbarsky davidbarsky commented Apr 4, 2025

Fixes #19489.

The main part of this this change is going from a self.proc_macro_clients.is_empty() check to a self.proc_macro_clients.len() < self.workspaces.len(). I also rewrote some iterator combinators in favor of two for loops and two match statements because I had difficulty understanding the code.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 4, 2025
@davidbarsky davidbarsky force-pushed the davidbarsky/fix-salsafied-crate-graph-with-lazy-project-discovery branch from 7ebdcc6 to db04fa1 Compare April 4, 2025 15:56
@davidbarsky davidbarsky force-pushed the davidbarsky/fix-salsafied-crate-graph-with-lazy-project-discovery branch from db04fa1 to 698f4da Compare April 4, 2025 16:14
@davidbarsky davidbarsky force-pushed the davidbarsky/fix-salsafied-crate-graph-with-lazy-project-discovery branch from 698f4da to 9aa99ee Compare April 4, 2025 16:15
@davidbarsky davidbarsky added this pull request to the merge queue Apr 4, 2025
Merged via the queue into rust-lang:master with commit 16a7250 Apr 4, 2025
12 checks passed
@davidbarsky davidbarsky deleted the davidbarsky/fix-salsafied-crate-graph-with-lazy-project-discovery branch April 4, 2025 16: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.

A *second* discovered workspace disables the proc-macro-srv for all workspaces
3 participants