Skip to content

Do not re-query source roots per crate in analysis-stats#21788

Merged
Veykril merged 1 commit intorust-lang:masterfrom
Veykril:push-mwqrzolksvxx
Mar 9, 2026
Merged

Do not re-query source roots per crate in analysis-stats#21788
Veykril merged 1 commit intorust-lang:masterfrom
Veykril:push-mwqrzolksvxx

Conversation

@Veykril
Copy link
Copy Markdown
Member

@Veykril Veykril commented Mar 9, 2026

Not ideal as we may pick a crate that analysis is not actually using but we do not encode targets in the crate graph so we can't really tell what main library crate will be

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 9, 2026
@Veykril Veykril enabled auto-merge March 9, 2026 10:09
@ChayimFriedman2
Copy link
Copy Markdown
Contributor

This could still report more memory than actually used because we populate item trees we don't need.

The problem is that accurate crate discovery requires def map, and we compute it after...

@Veykril Veykril added this pull request to the merge queue Mar 9, 2026
Merged via the queue into rust-lang:master with commit 360ad81 Mar 9, 2026
16 of 17 checks passed
@Veykril Veykril deleted the push-mwqrzolksvxx branch March 9, 2026 10:28
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants