Skip to content

Conversation

@CatherineGasnier
Copy link

@CatherineGasnier CatherineGasnier commented Dec 15, 2025

Summary: Previously, the enclosing range of a function name would be the range of the whole enclosing impl. I'm not sure exactly why, but the old code for enclosing_range was just not doing the right thing. The new doc comments should make it clear what we're trying to achieve in this new version.

Related PR: #21141

Test Plan:
Added unit test.
Also tested on Graphite repo

Summary:

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@CatherineGasnier CatherineGasnier marked this pull request as ready for review December 16, 2025 14:04
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 16, 2025
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 left a comment

Choose a reason for hiding this comment

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

The old code looks correct to me, the changes here aren't. The culprit is likely isn't here.

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