Skip to content

perf: Provide access to RootDatabase's LineIndex for the proc macro protocol#22191

Merged
Veykril merged 1 commit into
rust-lang:masterfrom
ChayimFriedman2:line-column
May 14, 2026
Merged

perf: Provide access to RootDatabase's LineIndex for the proc macro protocol#22191
Veykril merged 1 commit into
rust-lang:masterfrom
ChayimFriedman2:line-column

Conversation

@ChayimFriedman2
Copy link
Copy Markdown
Contributor

Instead of recreating it.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 27, 2026
@Shourya742 Shourya742 self-requested a review April 28, 2026 06:18
Copy link
Copy Markdown
Member

@Shourya742 Shourya742 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One suggestion

View changes since this review


Ok(SubResponse::SourceTextResult { text })
}
// Not incremental: requires building line index.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line can be removed now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, its still not incremental tbf

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH, I didn’t read the ‘not incremental’ part :P. I was referring to the second part of the statement, considering we’re no longer rebuilding it every time.

Non-blocker though.

@Veykril Veykril added this pull request to the merge queue May 14, 2026
Merged via the queue into rust-lang:master with commit d3adc06 May 14, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 14, 2026
@ChayimFriedman2 ChayimFriedman2 deleted the line-column branch May 14, 2026 12:57
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.

4 participants