8000 fix: Do not force descend into derives for goto IDE features by Veykril · Pull Request #19981 · rust-lang/rust-analyzer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: Do not force descend into derives for goto IDE features #19981

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

Veykril
Copy link
Member
@Veykril Veykril commented Jun 12, 2025

Doing so can cause us to duplicate navigation targets for the same ranges which breaks convenience features of some editors where go to def can trigger find all references

Doing so can cause us to duplicate navigation targets for the same ranges which breaks convenience features of some editors where go to def can trigger find all references
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 12, 2025
@Veykril Veykril enabled auto-merge June 12, 2025 07:38
@ChayimFriedman2
Copy link
Contributor

Yeah, I noticed this happening recently. Did it change recently?

@Veykril Veykril added this pull request to the merge queue Jun 12, 2025
@Veykril
Copy link
Member Author
Veykril commented Jun 12, 2025

Yes, this changed in #19893

Merged via the queue into rust-lang:master with commit 7011fd0 Jun 12, 2025
14 checks passed
@Veykril Veykril deleted the push-tzzunsrqqunv branch June 12, 2025 07:59
@@ -70,7 +70,7 @@ pub(crate) fn goto_type_definition(
}

let range = token.text_range();
sema.descend_into_macros_no_opaque(token)
sema.descend_into_macros_no_opaque(token,false)
Copy link
Member

Choose a reason for hiding this comment

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

Is this function too much for rustfmt to handle?

Copy link
Member

Choose a reason for hiding this comment

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

Ah, it's the match_ast!.

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.

4 participants
0